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
7
votes
3 answers

UITableView prevent reloading while scrolling

I have implemented an UITableView with load more functionality. The tableView loads big images from a sometimes slow server. I'm starting an URLConnection for each image and reload the indexPath corresponding to the URLConnection (saved with the…
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
7
votes
0 answers

Collection view cells won't reload after move

I am using a UICollectionView to display players in various positions on a field. Each cell contains labels showing the player's name and the position name. The locations in the view are determined by a custom layout that reads the position…
7
votes
2 answers

Reloading CollectionView does not clear previously loaded cells

I have an iOS app that utilizes RestKit 0.20.1 to retrieve data from a Restful web service. I should also add the app uses CoreData. When the app is started the main screen is a collection view that is populated by a default search term. There is…
Ben
  • 967
  • 3
  • 9
  • 23
6
votes
4 answers

How do I reload a Collection View automatically?

I have developed an RSS reader application using collection views. My problem is, on the very first launch, the app comes up blank. The process is, the RSS feed is pulled from the web, stored to a temporary file on the device and then displayed via…
Robert Farr
  • 680
  • 2
  • 7
  • 19
6
votes
3 answers

IOS - How expensive is reloadData?

I as wondering how expensive reloadData on tableView is. I wanted to refresh the tableview every 5 seconds. Is that going to cause any performance issues?
5
votes
2 answers

iOS UITableView reloadData only refreshes table the second time I call my reload function

Here is my reload function - (void) reloadTable:(id)sender { NSLog(@"Reload Table"); NSLog(@"%@",[appDelegate queryList]); [self.driverTable reloadData]; [self.driverTable setNeedsLayout]; [self.driverTable…
Daniel Chen
  • 163
  • 2
  • 11
5
votes
2 answers

iPhone, why isn't UITableView reloadData working?

I've enclosed a screen dump to make things easier to follow. I've attached my outlets for datasource and delegate and I've created an outlet for my table view, but reloadData doesn't work? Ideally I'd like to only call reloadData after the view has…
Jules
  • 7,568
  • 14
  • 102
  • 186
5
votes
2 answers

sending reload data from custom tableview cell?

How would I go about sending a reloadData message to the tableView from a custom tableViewCell?
Brodie
  • 3,526
  • 8
  • 42
  • 61
5
votes
0 answers

UICollectionView reloadItemsAtIndexPaths weird animation behaviour

I'm using a UICollectionView and reloadItemsAtIndexPaths to achieve maximum efficiency and get the animations for free. Somehow the animation is triggering only sometimes (maybe cause reuse cells? ) I've created a simple project with one…
Mijail
  • 186
  • 10
5
votes
1 answer

reloadData() fatal error: unexpectedly found nil while unwrapping an Optional value

The app crashes at the line class ImageValueCell: UITableViewCell, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var imagesList: UITableView! var imageArray: NSArray! override func awakeFromNib() { //super.awakeFromNib() …
Perwyl Liu
  • 349
  • 4
  • 14
5
votes
2 answers

UICollectionView reloadData seems slow/laggy (not instantaneous)

Hello: I'm using a collection view within my app, and I've noticed that it's taking longer than expected to refresh using reloadData. My collection view has 1 section, and I'm testing it with 5 cells (each of which has 2 buttons and a label). I put…
5
votes
2 answers

Update all view controllers of a UITabBarController

I have a UITabBarController with four tabs. In each of the view controllers presented when a tab is selected I have a reset button. Tapping the button will change the appearance of all the view controllers. In particular, it will change the text of…
Mischa
  • 15,816
  • 8
  • 59
  • 117
5
votes
4 answers

[self.tableview reloadData]; causes flickering

The problem is the UI appears and then gets updated : giving a flickering affect. I want the UI to be updated only once when user enters app, thus i've put reload in ViewDidLoad.. Here is the code .. Any help how can remove this flickering ... Some…
user3576169
  • 81
  • 2
  • 7
5
votes
1 answer

Unable To Deselect UICollectionView Cell once it is reloaded

I have had a string of problems with UIcollectionView and I think the work around is what is currently causing the problem. Okay, so I have a collectionview that loads objects from a class that updates very frequently, maybe every few seconds. The…
DTDev
  • 307
  • 4
  • 15
4
votes
1 answer

How to reloadData in class which implements UITableViewDataSource protocol

I have a class which implements UITableViewDelegate protocol and there is another class which handles data i.e. it implements UITableViewDataSource protocol. @interface TableViewClass : UITableViewController @interface…
Dar
  • 185
  • 2
  • 12
1 2
3
45 46