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

UITableview No Longer Refreshing in iOS 10 after initial import

I have an application that imports an XML file at first launch to create a table. This worked perfectly fine in iOS 9. In iOS 10, it still imports all the data correctly, and performs the fetch correctly, but the table won't show the items until I…
Zachary Fisher
  • 781
  • 1
  • 7
  • 18
2
votes
1 answer

Reload Table View Except for One Cell

I have a table view containing searchable data, and one cell which contains an editable textField (editable with a pickerView). I am using the pickerView to select the section of the tableview to be displayed. However, when a new row is selected…
trumpeter201
  • 8,487
  • 3
  • 18
  • 24
2
votes
4 answers

UICollectionViewCells not showing after reloadData()

I want to make an infinite scroll collection view, so in this code I add 10 to the number of cells every time the index path is equals to the last cell item, and then reload the data in the collection. The function works; I can scroll infinitely,…
noanoanoa
  • 41
  • 2
2
votes
3 answers

Reloading table causes flickering

I have a search bar and a table view under it. When I search for something a network call is made and 10 items are added to an array to populate the table. When I scroll to the bottom of the table, another network call is made for another 10 items,…
JEL
  • 1,540
  • 4
  • 23
  • 51
2
votes
3 answers

UICollectionView `reloadData` causes UILabel lines to disappear

I have a UILabel in a collectionView header. The label is set to zero lines, word wrapping, and proper leading/trailing/top space constraints. If i DO NOT call [collectionView reloadData], the label expands properly to text with greater than two…
Peter
  • 1,053
  • 13
  • 29
2
votes
2 answers

Reporting crash on UITableview reloadData

I'm getting a crash report from Crashlytics that is always in the same place but I'm unable to replicate the crash. It seems to be only users on iOS 9 and only very occasionally. I'm not sure if it's a code issue or something else. The last line…
Paul
  • 79
  • 11
2
votes
4 answers

UICollectionView Reload Data Not Working to update CollectionView

UPDATTE: I did forget to mention that the CollectionView is in the right hand side of a Split View Controller, and on the left side, I have tableView. When a row is selected, I pass a new FEED ADDRESS and have it run refreshFeed method on the right…
user717452
  • 33
  • 14
  • 73
  • 149
2
votes
1 answer

iOS UITableView not responding to reloadData() request in Swift

I am parsing data with SwiftyJSON. The data was received through an API request made through Alamofire. For some reason when I am using the reloadData() UITableView method nothing happens to the UITableView. I am using the UITableViewViewController…
Stefan DeClerck
  • 1,162
  • 2
  • 12
  • 22
2
votes
1 answer

swift: refresh/reload table view did not work

i'm new in swift development, i added data in server tried to refresh tableviewcontroller with refreshcontrol function but value in table view didn't change. class MainTableViewController: UITableViewController, UINavigationControllerDelegate…
Aldo Lazuardi
  • 1,898
  • 2
  • 19
  • 34
2
votes
3 answers

No matter how I reload UITableViewCell, it always flashes randomly

I am using a custom uitableviewcell, which is written in Objective C (everything else I have is written in Swift) for the purpose of having easy customer slide buttons. I have a tableview which uses these cells, and I want it to update even when one…
CoderDude
  • 21
  • 6
2
votes
1 answer

tableView reloadData not reloading data after deletion in documents directory

I have a problem where i cant seem to reload the data in my tableView. What i am trying to do is populate my tableView with files in the documents directory with a csv extension (which i have done), then press a button which deletes all the…
Ultra_charge
  • 79
  • 11
2
votes
1 answer

Why is UICollectionView reloadData crashing my app?

I am using uicollectionview to display some photos and I have a button that allows the user to delete the selected photo. It works perfectly unless I try to delete the last photo in the array of photos being used to populate the uicollectionview. Ie…
365SplendidSuns
  • 3,175
  • 1
  • 21
  • 28
2
votes
2 answers

How to renew view on tab in tab bar controller

I have UITabBarController with two tabs. Each tabs have UITableViewController which view data from database. When I change data and switch tab view doesn't change. When I back and switch tab again, view is ok! How can I renew view programmatically?
Walter West
  • 829
  • 3
  • 12
  • 31
2
votes
0 answers

What can cause custom UITableViewCell to blink on reload tableview?

I have a problem with custom UITableViewCell. When i reload table view with methods: reload data(), beginUpdate()/endUpdate(), reloadRowsAtIndexPath() often my uitableviewcells blink, but not always. What can cause such problem? Additional…
Serd
  • 421
  • 1
  • 4
  • 13
2
votes
1 answer

Add a row to UITableView without using reloadData

I have a ViewController that creates a new object and then back in the FirstViewController.m I have an unwind method that should update the tableView with a row for the new object. Using the reloadData method won't work because it reloads all of the…
Benck
  • 515
  • 1
  • 5
  • 17