Subscribe ( )

iPhone Programming Tutorials

 

Forum

You must be logged in to post Login Register

Search 

forcing a UITableView to update

User Post

7:10 am
October 17, 2008


iCoder

Derbyshire, UK

posts 10

1

Hi all,

Hit a bit of a problem with my first proper app. I've used the navigation template as a starting place, as the table on the 'front screen' is exactly what I wanted. I've got a hierarchy of views/controllers and all the navigation between the views work great! Theres a view I have a couple of levels down the view hierarchy that adds a new record to a SQLite database and then 'pops' back to the root view, and that works fine. But the new record does not show up on the main TableView I mentioned above (because its not calling cellForRowAtIndexPath - only calls that on startup), I have to come out of the app and go back in for it to show up.

So, in the awakeFromNib { I load the SQL records into an array (which cellForRowAtIndexPath reads from) and then I do a [tableView reloadData];

But I get an error on that line saying 'tableView' undeclared… This is the default tableView outlet that comes with the template, and thats what its called, and yes I have a captial V, the rest lower-case.

So, have I got my wires crossed here. How do I force that default tableView to reload the data from my array? I've not posted any source code here, as that bit is basically the template untouched.

8:10 am
October 20, 2008


iCoder

Derbyshire, UK

posts 10

2

Embarassed Sorted it.  The UITableView did not have an outlet Embarassed

Doh!



About the iCodeBlog forum

Currently Online:

5 Guests

Maximum Online: 25

Forums:

Groups: 2

Forums: 6

Topics: 199

Posts: 594

Members:

There are 371 members

There are 1 guests


Brandon has made 87 posts

Top Posters:

bobcubsfan - 52

crazyiez - 30

VertigoSol - 26

AdeC - 17

Uhu - 17

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)