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

variables being reset to null after reloaddata in objective-c

Ive been having problems with reloadData on a TableView. I've finally been able to establish that the variable I use to tell reloadData what to reload is resetting to NULL. I've added the variable in ClassAppDelegate.h as follows: @property…
Jimmypooza
  • 97
  • 2
  • 8
0
votes
1 answer

reloadData for TableView not loading cellForRowAtIndexPath or row count

I am trying (in vain) to reload tableView in MasterViewController from another View Controller SitesViewController. I use this code in the SitesViewController: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath…
Jimmypooza
  • 97
  • 2
  • 8
0
votes
3 answers

forcing an screen update in a table without a reload data

I'm putting custom colors into table cells that can change on circumstances. The code below changes the color back and forth fine. I don't like the fact that have to do a reloadData every time to get the colors to show up. Is there a less…
Grymjack
  • 529
  • 1
  • 10
  • 21
0
votes
1 answer

Reflect changes to NSFetchedResultsController results upon returning from detail view?

So I've got a button on my UITableView that turns on and off a filter, that filters by a BOOL called isLiked. I can display all results, or just the ones designated as liked. I can tap on any cell and go into a detail page where I can flip that BOOL…
Luke
  • 9,512
  • 15
  • 82
  • 146
0
votes
0 answers

Dynamic UITableView not scrolling

I have looked through a few posts on this but none really solve the issues I'm having. Quite a few suggest: self.tableView.scrollEnabled = YES; However, this doesn't enable me to scroll. The cells are updated dynamically so reloadData is called a…
Dan
  • 2,304
  • 6
  • 42
  • 69
0
votes
2 answers

Assertion failure when trying to delete a row from UITableView

I got an assertion failure when I try to delete a row from a UITableView using UITableViewCellEditingStyleDelete. Hope someone could tell me what is going wrong in my code. *** Assertion failure in -[UITableView _endCellAnimationsWithContext:],…
K Hsueh
  • 610
  • 1
  • 10
  • 19
0
votes
1 answer

osx, making tableview reloadable

I have another simple question I can not solve by myself. I have two xibs. main.xib for the user input and result.xib for the results. Xib2 starts when a button is pushed on input-xib. The button action (in AppDelegate.m): -…
JFS
  • 2,992
  • 3
  • 37
  • 48
0
votes
1 answer

iOS UICollectionView reloadData maps model to ViewCell incorrectly

If the model data in an NSArray does not change, and you call reloadData on the UICollectionView, do the cells appear in different spots? I'm finding that if my NSArray holds Obj1, Obj2, Obj3, then at first, the UICollectionView correctly maps Obj1…
Rohan Agarwal
  • 2,167
  • 1
  • 24
  • 34
0
votes
3 answers

why reloadData shouldn't be called on methods that delete/insert rows

I was trying to implement sparrow like row swiping that shows an action row (My starting point was this code). for each row I create.. I also create a 'backView' UITableViewCell that references the parent row.. so that when I click delete on the…
abbood
  • 23,101
  • 16
  • 132
  • 246
0
votes
1 answer

UITableView inform UITableViewCell about reload

Here is a short summary of the situation: I have a TableViewController with a number of cells. In one of the cells I have a UITextField. This cell is of a custom UITableViewCell class. This class implements the UITextFieldDelegate protocol and the…
Brabbeldas
  • 1,939
  • 4
  • 20
  • 32
0
votes
2 answers

How do I add new table cell data from one modal view controller?

Here's the process I have currently: 1) Tap Add Button 2) Fill out UITextFields in my modal view controller 3) Tap Save Button 4) Data is added to a UITableViewCell 5) Repeat steps 1 - 3 6) New data is added to second cell, but the data in…
Luke Irvin
  • 1,179
  • 1
  • 20
  • 39
0
votes
1 answer

Refreshing RSS data in TableView

I am trying to refresh my TableView while I am parsing RSS. Once I update the xml and then I press on refresh button it wont make anything but when I close and open the app it runs the new updated xml. Where could be my…
Luai Kalkatawi
  • 1,492
  • 5
  • 25
  • 51
0
votes
1 answer

UITableView reloadData not updating UI, only after restart

Running into a strange problem: I have a TableViewController (call it recent tab) that is one of the tabs of a UITabBarController. I have items getting saved into sandbox (documents folder) in the first tab bar (browse tab). I am then pulling them…
Live2Enjoy7
  • 1,075
  • 2
  • 11
  • 22
0
votes
1 answer

Reload data of table view subobjec of uiviewcontroller with tableview

i've a class SelezionaProfilo, in this class i've a list of players: @interface SelezionaProfilo : UIViewController < UITableViewDelegate, UITableViewDataSource > { UITableView *myTableView; //my staff } @property (nonatomic, retain) IBOutlet…
Simone Pistecchia
  • 2,746
  • 3
  • 18
  • 30
0
votes
1 answer

Selecting row crashes after reload data

I have a problem with a UITableView. I load data from a database server in a background thread and if it is finished it sends a notification. In the notification I update the data array of my view and use reloadData on the tableview. Then the…
Wenduros
  • 13
  • 4