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

how to change height cell in uitableview without reload data

I use UITableView and I want change the height of different cells. But I don't want use reload data for this because my table view contains UITextView which I edit in now and UIKeyBoard is up.
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
17
votes
4 answers

Reload Table view cell with animation (Swift)

Is there a way to reload specific UITableView cells with multiple sections with animations? I've been using: self.TheTableView.reloadSections(NSIndexSet(index: 1), withRowAnimation: UITableViewRowAnimation.Right) This animates all the cells in…
William Larson
  • 593
  • 3
  • 8
  • 16
14
votes
6 answers

iOS: How to know reloadData() was completed its task?

I want to scroll to a given index (self.boldRowPath), but when I debug scrollToRow is performed before reloadData(). How to know reloadData has finished ? func getAllTimeEvent() { self.arrAllTimeEvent =…
Harshil Kotecha
  • 2,846
  • 4
  • 27
  • 41
14
votes
1 answer

How to reload data in a TableView from a different ViewController in Swift

In a ViewController, I'm trying to reload data in a TableView in another ViewController like so: (self.presentedViewController as! tableViewController).table.reloadData() Where tableViewController is the class in the TableView's controller…
user2252374
  • 153
  • 1
  • 6
12
votes
2 answers

Self Sizing Cells make UITableView jump

I've got a UITableView, each cell has an image and two labels, as you can see on the first picture So I am trying ti use self-sizing cells and everything is great, except 2 things: 1) First and Second cell don't show content properly, but after I…
igrrik
  • 467
  • 1
  • 6
  • 16
12
votes
5 answers

UICollectionView cells stay highlighted after reloaddata

I have a UICollectionView with labels inside the cells that change automatically periodically. When this update triggers I call reloadData on the UICollectionView and I have set the cells to change the background colour on [UICollectionViewCell…
richy
  • 2,716
  • 1
  • 33
  • 42
10
votes
2 answers

Reloading tableview data from custom cell

I have a tableView with custom cell. I also have a .swift-file for this custrom cell. In this file I have a function which doesn't have a sender:AnyObject in entering parameters. How can I call tableView.reloadData() from this function?
SwiftStudier
  • 2,272
  • 5
  • 21
  • 43
9
votes
7 answers

UITableView reloadData - cellForRowAtIndexPath not fired

I have splitViewController which has as MasterViewController some viewController and as DetailViewController some tableViewController. When I push a button on masterViewController I want to show new tableViewController in detailViewController…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
9
votes
5 answers

How to reload tableview using view controller (swift)

i'm quite new to this. I've spent some hours to go through the various questions on this topic but couldn't find an answer that fits to me question. I have an viewcontroller (not a tableviewcontroller) with a tableview as subview. My question is how…
Netzer
  • 227
  • 1
  • 3
  • 8
9
votes
2 answers

self.tableView reloadData not working after successful call in AFNetworking

I have a class that runs similar to the AFHTTPSessionManager component of this tutorial http://www.raywenderlich.com/59255/afnetworking-2-0-tutorial However, [self.tableView reloadData] is not working for me. I have the manager implemented as…
Jargen89
  • 480
  • 1
  • 6
  • 19
8
votes
1 answer

Is it not possible to put UISearchBar in UITableView header?

I am trying to accomplish this: Consider a table view with Search Bar on its header.Table view gets refreshed whenever string is searched. I am having 2 classes TableViewController(UIViewController subclass) contains UITableView -That shows…
prajul
  • 1,216
  • 2
  • 15
  • 27
8
votes
2 answers

iOS: tableView.reloadData() doesn't work in swift

I'm trying to reload my table view after updating data in Swift but it doesn't seems to work. When I change tab and go back the table view is reloaded but not automatically. Here is my code: override func viewDidLoad() { super.viewDidLoad() …
Florentin
  • 1,433
  • 2
  • 13
  • 22
7
votes
6 answers

Force UITableView to call cellForRowAtIndexPath: for all cells

I am having some trouble with UITableView's reloadData method. I have found that it only calls cellForRowAtIndexPath if there are new cells being added or taken away. Example: I have five cells, each containing five strings. If I add a new cell and…
eric.mitchell
  • 8,817
  • 12
  • 54
  • 92
7
votes
3 answers

iOS - another thread needs to send reloadData to the mainthread

I got a separate thread that creates a UIView object, inserts it into the UITableView's data source and then call reloadData on the UITableView. However, since it is a separate thread, it cannot call reloadData directly, it needs to make the…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
7
votes
5 answers

Animate [tableView reloadData]

I have a UITableViewCell that expands and adds a label on click. Logic: I added a label in cellForRowAtIndexPath to the selected cell, and in didSelectRow... I reloaded the tableView. In heightForRow... the selected cell expands. Hope you get…
user4487951
1
2
3
45 46