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

Reload data for UIView\UIViewController?

When I am moving the buttons on the screen from a function, [self makeButtons], nothing happends unless I push a viewcontroller, then pop back. Is there a reload data function for ViewController, as it is for UITableViews? I am using…
Martol1ni
  • 4,684
  • 2
  • 29
  • 39
0
votes
1 answer

tableView property with UIViewController (or UITableViewController)

#import @interface FourthViewController : UIViewController{ //@interface FourthViewController : UITableViewController{ I want to update my tableview so I trying to use [self.tableView reloadData] but i cannot even type this line…
EmilOoo
  • 3
  • 5
0
votes
3 answers

How to call the RefreshTableView function in objective C?

I wrote a Refresh function to reload the tableview in iPhone app with the argument of UITableview. My question is how can I call or invoke this refresh function? - (void)RefreshTableView:(UITableView *)tableView { if(tableView != nil){ …
Rajeshwar
  • 1,471
  • 1
  • 12
  • 13
0
votes
1 answer

Calling method in MyAppDelegate.m to ViewController

I have GridViewController. @interface GridViewController : UIViewController { NSArray *objects; //main data…
Ghostino Doggio
  • 351
  • 1
  • 4
  • 11
0
votes
1 answer

Reloading tableview after fetching asynchronous JSON data

I have used asynchronous JSON request and response to get some data. I want to populate it in a tableview. However, all I see is blank table cells. I tried doing a reloadData but it is not working. Here is my code: - (void)viewDidLoad { [super…
Shwethascar
  • 1,142
  • 9
  • 18
0
votes
1 answer

UITableView reloaddata and the tableview is empty

There is a navigationViewController and it's the subclass of UITableViewController @interface TodoViewController : UITableViewController The rightBarButtonItem is called "Reload" and it will can the function to reload data from the WebService: …
jxdwinter
  • 2,339
  • 6
  • 36
  • 56
0
votes
1 answer

reload cellView after performSelectorInBackground

I have a application that is made of "Navigation Controller" whith "UITableViewController" which contains a navigation item with a search field. In the storyboard, the Search Bar is inside the TableView. I request XML from a server, if I do it…
0
votes
1 answer

UITableView reloadData don`t work

I get an array of another class, and make changes to this class, but when I do a reloadData not much happens. What is wrong? This is my code #pragma mark TesteFaceCarViewController methods -(void)valores:(NSMutableArray *)array { arrayInfracao…
-1
votes
1 answer

Collection View does not work as expected

I have a collection view, when it loads for the first time everything works fine I have a photo archive, if the cell index exceeds the number of photos in the archive, then the photo is not added to the cell 1st photo is the moment of the first…
Denim
  • 9
  • 2
-1
votes
2 answers

Swift reconfigure collectionview cells

so I am trying to change the background color of the collection view cell that is clicked, however, when I call the CollectionView.reloadData() method the backgrounds don't change. I am thinking that reloading the data only checks for adding and…
-1
votes
1 answer

Swift UITableView reloadData() method unexpectedly found nil error

I'm trying to create a very simple todo list app in swift and when I call the reloadData method on my UITableView I get this error: "Unexpectedly found nil while implicitly unwrapping an Optional value". I'm calling this method when the user clicks…
Zemelware
  • 93
  • 8
-1
votes
1 answer

Can I call reload data for a collection view for from a cell?

I'm working on an iPhone app that is a runners pace calculator. I'm using a collection view with a custom cell to display details about different run distances. If I update the run pace text value in a cell, I want the app to recalculate the…
Peter F.
  • 176
  • 1
  • 11
-1
votes
3 answers

Why does UITableView shows only half the data when coming back to front

I have a very strange behavior of my UITableView. When I call it first time after starting the app all data are shown as they should. When I move to another Viewcontroller and come back to the tableview it only shows half the data. I figured out…
-1
votes
1 answer

UITableView reloadData() from ViewController with extension of UITableViewDataSource, UITableViewDelegate

I worked my table view with an extension to the ViewController. How can I use reloadData() as in TableViewController? extension ViewController: UITableViewDataSource, UITableViewDelegate{ func tableView(_ tableView: UITableView,…
Tsur Yohananov
  • 533
  • 1
  • 7
  • 17
-1
votes
3 answers

how to reference a UICollectionView when its inside a UITableViewCell

I have a UITableView which has 2 sections. In section 1 is a static cell which has a horizontal collectionView inside it. My question is how do I reference the collectionView in the Controller to reload the collectionView... Here is my…