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

UITableView original content new content overlapping after reloadData

I encountered a problem with the UITableView. I have a table that list out an array of items. A segmented control that controls how the table's content should be sorted, by rating/date. What bothers me is that some of the table cells' text is not…
Rookie
  • 161
  • 1
  • 3
  • 11
3
votes
1 answer

objective-c collectionview does not load data

somehow my collectionView does not load my data. I fetch data from facebook and call reloadData after the array is populated, but nothing happens... No Cell's are displayed, as the array is 0 when ViewDidLoad is called. How do I reload that it take…
jerik
  • 5,714
  • 8
  • 41
  • 80
3
votes
1 answer

why is beginUpdates not resizing my cell in UITableView?

what I have: a UITableView with a cell. This cell has a UITextView as a subview. All the delegates and data sources are set correctly. The cell height is obtained correctly from heightForRow etc. The user enters text into the textView. what I'm…
Cashew
  • 1,466
  • 2
  • 16
  • 21
3
votes
1 answer

Reload table view in real time

The app receives a UILocalNotification, but if the user is at the UITableViewController at the fire time, the table view (containing the scheduled notifications) does not reload. The user has to get out of that view and load the view again so that…
2
votes
1 answer

Reload table view not working

Updated up my question I've got a settings page where I am showing the setting name on the left, and what the current setting is on the right (UITableViewCellStyleValue1). When you tap a setting's cell, you get an action sheet that lets you select…
James
  • 3,765
  • 4
  • 48
  • 79
2
votes
0 answers

UITableView keeps old cells on [self.tableView reloadData]

I have a Split View application. When some data is input into fields in the Master View Controller I update the model (shared by Master and Detail View Controllers) and then Master VC asks Detail VC to update itself - Detail VC calls [self.tableView…
Marc
  • 145
  • 1
  • 3
  • 11
2
votes
3 answers

UITableView reloadData taking too much time

I'm using TBXML+HTTP to get XML data from a website. What I want to do is populate a UITableView with the processed data. I've created a NSMutableArray that holds all the entries and, as far as that goes, everything is working fine. The problem is…
user1276108
  • 183
  • 2
  • 7
2
votes
1 answer

Call a ViewController method from NSObject Class

I am trying to call a method thats in my ViewController from a NSObject Class thats doing some parsing. I initally call a connection class I have made wich downloads some data from my server, I then pass this data over to a parser class I have made,…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
2
votes
1 answer

uitableView reloadData doesn't work after setting delegate, datasource and file's owner connection

I have googled and done lot of research from my side to find out why the reloadData method on tableview wouldn't work. I checked all the possible solutions like the datasource is set, delegate is set, the tableview is connected to the file's…
jeevangs
  • 306
  • 5
  • 20
2
votes
4 answers

UITableView not refreshed

I have an app consisting of a TabBar with a few TabBarControllers. One Controller contains a very simple table, which is supposed to display the contents of a NSMutableDictionary. When you hit the appropriate button, the Dictionary is updated in a…
Bassman
  • 353
  • 5
  • 17
2
votes
1 answer

uitableview reloaddata cache?

I'm having some problems with an UITableView and the method reloadData. I'm refreshing the tableView when clicking over a refresh button with the last info in a data base ordered descendingly so the most recent items should appear in first…
Ibai
  • 568
  • 1
  • 7
  • 21
2
votes
2 answers

iOS uitableview reloadData not quite working

I have a UITableView and the data is pulled from a database stored externally. Obviously it takes some time to fetch that data, do when the app is launched there is no data in the array which the table uses for it's data. When the data is loaded…
Josh
  • 3,445
  • 5
  • 37
  • 55
2
votes
1 answer

UITableView reloadData method creates a trouble of blurry data

I have a UITableView in which each UITableViewCell having a UIView on them and and above UIView i have two UIButton and two UILabel. My problem is this when i am reloading the tableview then the new data is rewritten on the old data that makeks…
shivangi
  • 187
  • 2
  • 14
2
votes
3 answers

How to reloadData when we use dismissModalViewControllerAnimated to get back to previous view?

I am unable to reload data in my table view when I use dismissModalViewControllerAnimated however it works perfect if I use pushViewController. I am calling reloadData in viewWillAppear. This is how I am switching views: -…
Varundroid
  • 9,135
  • 14
  • 63
  • 93
2
votes
0 answers

SwiftUI, custom list does not refresh when items are deleted

I have a custom list I built to show historical searches that pulls from a Core Data store. The custom list is essentially a VStack with a ForEach loop. I had to rebuild the list as custom, instead of the stock ListView, because the parent view is a…
M Alamin
  • 307
  • 2
  • 10