Question

I've enclosed a screen dump to make things easier to follow.

I've attached my outlets for datasource and delegate and I've created an outlet for my table view, but reloadData doesn't work?

Ideally I'd like to only call reloadData after the view has been loaded once?

alt text

Was it helpful?

Solution

Create a property for your UITableView and use the property as your IBOutlet, using the ivar directly isn't the way to do it. Hook things up again and debug it, to see if your UITableView isn't nil.

Put a breakpoint in the UITableView datasource methods to see if they get called, if they are, check if your transactionsArray actually contains items.

If this doesn't help, you'll have to provide more info like which methods are being called and more code.

OTHER TIPS

If the main view of your UITableViewController is your table view, you can avoid using IBOutlets and use directly the tableView property of your controller. Like this:

[self.tableView reloadData];

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top