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
-1
votes
2 answers

Reload tableview rows not working unless I scroll

I am currently using a folding cell library and when i close the cell, the labels(dates) and images(workout type) should reload. tableView.beginUpdates() UIView.performWithoutAnimation { tableView.reloadRows(at: indexSet, with:…
-1
votes
2 answers

tableView.reloadData() is not working

I am making an app to keep track of my homework and for some reason when I call reloadData it doesn't work, some people have already asked about this but I have tried there fixes and they don't work for me, here is the file where I add new…
-1
votes
1 answer

do tableView.reloadData() in external class

I am doing a Parse query from an external class. This query give me back the array for populate the tableview, so in the viewDidLoad method I call MyClass.load(array) and the async parse method findObjectInBackground return me the array filled but…
Luca Alberto
  • 1,195
  • 3
  • 11
  • 30
-1
votes
1 answer

iOS uitableview freeze when reloadData

I used nsarray to store all the tableview cells, after I updated the cells, I called [tableView reloadData]; Then the app will be freeze. How can I prevent that? ========================================================================= -…
Fai Fabio
  • 19
  • 5
-1
votes
1 answer

Objective-c TableView Refresh With dispatch_sync error

Hello I have working simple tableview json parsing codes. But i want to do reload tableview in background everytime i added dispatch_sync codes but don't working my codes under. NSArray * jsonArray; NSMutableArray * array1; - (void)viewDidLoad { …
SwiftDeveloper
  • 7,244
  • 14
  • 56
  • 85
-1
votes
1 answer

Error when trying to reload data in UITableView in Swift

Still not solved! I have been stuck with this problem way too long, so i hope you can help. I Have two UITableViews side-by-side in one view in Storyboard. Each in a ContainerView to control their positions. The idea is, if you touch a row in the…
Rindom
  • 41
  • 4
-1
votes
1 answer

Delete previous item tableview Swift

i'm facing a problem with one of my tableview, i decode JSON and put result in my cells, the problem is, each time i close the view and come back to it, previous items are still here : I think i have something to do with ReloadData, but i dont…
f1rstsurf
  • 637
  • 1
  • 6
  • 22
-1
votes
1 answer

NSTableView.reloadData() for NSTextFields

I'm working on a little mac application on swift, and I have not been swifting for very long, but am aware of the function reloadData() for NSTableViews. In my program, I incorporate the function controlTextDidChange for an NSTextField. I would like…
GregarityNow
  • 707
  • 1
  • 11
  • 25
-1
votes
1 answer

UITableView JSON reloadData

I am trying to populate a UITableView with JSON, but when I reload the data of my table after making the connection it causes my app to crash, with error code "Thread 1: EXC_BAD-ACCESS (code=1, address=0x0040da5)" Here is my…
-1
votes
2 answers

UITableview - Can't Reload data

I'm noob in Obj-c programming. I'm making an iPad application composed of a ViewController that shows me 2 text boxes , a button in the upper side , just to make a sum. In the same Viewcontroller, i have a TableView and a Button. This Tableview…
user2854276
  • 21
  • 1
  • 5
-1
votes
1 answer

How to switch off -reloadData's cell height animation

I have a UITableView, its cells' height can be either 68pt or 78pt. For example there are two 68pt height cells and one 78pt. I add new object to the datasourse and then call -reloadData to refresh the UITableView. But when this method fires -…
mriddi
  • 423
  • 2
  • 4
  • 11
-1
votes
1 answer

Refresh Table View Data does not work

I have a UITableView, named Favorites section. If i add an entry to the favorites section, i can see it loaded correctly in the favorites section, but if i continue and try to add another entry, it will only work if i go to favorites section, then…
Elias Rahme
  • 2,226
  • 3
  • 28
  • 53
-2
votes
3 answers

How do you use reloadData?

I have a table view set up in IB. It's delegate/datasource are connected to this class: @interface EditPlayersViewController : UIViewController { I'm trying to call the reloadData method. If I use…
kend0g187
  • 31
  • 1
  • 4
-2
votes
1 answer

UITableView reload sections crashes

I'm using [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:k] withRowAnimation:UITableViewRowAnimationNone];, I examined I'm getting a valid value for k but still I'm getting -[NSIndexSet initWithIndexesInRange:]: Range…
Nagesh
  • 167
  • 1
  • 2
  • 11
-2
votes
2 answers

How to integrate a "like" button in swift tableviewCell

What is the logic i should follow to integrate a like button in a tableview cell? How do you update a text label inside the cell signaling how many likes it has in real time IE: when you click the like button it either adds a like or removes a…
1 2 3
45
46