Questions tagged [reloaddata]

This tag covers reloadData methods on UITableView, UICollectionView and NSTableView in Apple's UIKit and AppKit frameworks. Do not use it outside the context of Apple frameworks.

Initially this was supposed to cover reloadData on UITableView on Objective-C, but by now it has also been used for all kinds of issues regarding reloading data.

Don't do this, let's leave this to UITableView.

678 questions
4
votes
1 answer

Performance of UITableView reloadData, reloadSections:withRowAnimation: and reloadRowsAtIndexPaths:withRowAnimation:

I build a test purpose app to test the performance of these three methods on reloading the table view. // // ViewController.m // TableViewSample // // Created by Antonio081014 on 8/2/15. // Copyright (c) 2015 Antonio081014.com. All rights…
antonio081014
  • 3,553
  • 1
  • 30
  • 37
4
votes
3 answers

prevent uitableView reloading

I am using a uitableView in my application and I want to prevent reloading it in different cases: 1. when I present another modal view on it. 2. row selection happens. I am not calling [tableview reloadData] in viewWillAppear or viewDidAppear. Is…
Niloufar
  • 512
  • 1
  • 5
  • 24
4
votes
1 answer

ios: UITableView reloadData not working until scroll

I've noticed a few questions similar to this one on SO but they all seem to end in the person was calling [self.tableView reloadData] Outside of the main thread. My problem is, I'm calling this on the main UI thread and I still don't get the new…
user1513171
  • 1,912
  • 6
  • 32
  • 54
4
votes
4 answers

iOS - [UITableView reloadData] reloads, but not removes old cells?

This is weird, I know but my [UITableView reloadData] is not removing old cells, like this: The mess you see happened after I clicked on the + button, came back and changed values again. plus button pushes the navigationController to an another…
Arda Oğul Üçpınar
  • 881
  • 1
  • 14
  • 38
4
votes
2 answers

UICollectionView reloadData ghost cells

I came here because I have a pretty weird problem with my UICollectionView. Imgur album with all the screens I would like to share: https://i.stack.imgur.com/CKy9x.jpg First of all, here's what my app looks like with no problem: Image 2 of the…
Drayae
  • 241
  • 2
  • 10
4
votes
1 answer

iOS UiCollectionView - reloadData using custom UiCollectionViewLayout

I'm trying to use a custom UiCollectionViewLayout but I have a little problem. In my project I want to load some JSON information and present it in a UICollectionView. I need to load the information from WEB and then (when everything is loaded) I…
4
votes
1 answer

UICollectionView stuck in reloadData

I'm having problems with [UICollectionView reloadData], which seems to get stuck for quite a while before it calls numberOfSectionsInCollectionView on its delegate that I have specified. This is what happens: The app starts with the UICollectionView…
Merott
  • 7,189
  • 6
  • 40
  • 52
4
votes
2 answers

Trouble with reloadSections:withRowAnimation animation

I have a UITableView with two sections (a top section and a bottom section). When items are "checked off" in the top section (section 0), I'm moving them them to the bottom section (section 1) and vice versa. Everything is working great save for the…
mySilmaril
  • 207
  • 1
  • 3
  • 13
4
votes
1 answer

Recipes for changing the Fetch Request for NSFetchedResultsController and reloading table data

From apple doc Modifying the Fetch Request I see that is possible to change the NSFetchRequest for NSFetchedResultsController. Steps are easy to set up. After invoking performFetch: I think there is the need to call reloadData on the the table view.…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
3
votes
2 answers

iPhone / iPad Table View Reload Only One Row Instead Of The Entire Table

Instead of a [table reloadData] Is there a way to tell the table to reload just one row? There are reasons for my madness.
ort11
  • 3,359
  • 4
  • 36
  • 69
3
votes
1 answer

how do you overload the UITableView "reloadData" method in a UITableViewController?

how do you overload the UITableView "reloadData" method in a UITableViewController? e.g. to put a log statement to see/confirm when reloadData is being called on each of my UITableViews
Greg
  • 34,042
  • 79
  • 253
  • 454
3
votes
1 answer

Main Thread & Collectionview.reloadData()

I have a situation where the code change its collectionView data source then call reloadData() several times and i think this cause my app to crash due to the race condition as the data source change very fast, so I wrapped the snippet of code that…
Bathant Hegazy
  • 549
  • 4
  • 16
3
votes
2 answers

Popover attached to cell in UICollectionView moving when is called the ReloadData of this collection view

I have a UICollectionView that the user can clicks and it shows a popover attached to the cell clicked. In iOS 12, the popover stayed in the same origin (x,y or cell) if the reload data was called or not, but in iOS 13, the popover moves between the…
3
votes
4 answers

Angular 7 - Reload / refresh data different components

How to refresh data in different component 1 when changes made in component 2. These two components are not under same parentnode. customer.service.ts export class UserManagementService extends RestService { private BASE_URL_UM: string =…
SKL
  • 1,243
  • 4
  • 32
  • 53
3
votes
1 answer

How to show the data in UITableView when dismissing modal view

I need help. My Recipe app has a main viewController with two UITableView (ingredientTableView and directionTableView). Each is populate from two modal view controllers by 'segue'. The data are storage in the ingredient/direction array of new…
Davide
  • 61
  • 1
  • 9