Subscribe ( )

iPhone Programming Tutorials



If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

You must be logged in to post Login Register


How to add items to UITableView from iPhone Programming Tutorial - Populating UITableView With An NS

User Post

3:23 am
May 17, 2009



posts 1


I created a new project following the tutorial and have come in to a problem here's the details…

I have a UITableView which is populated by an array, I have a button on the navigaton bar which (when pressed) adds an item to the array and calls [self.tableView reloadData] in the UITableView. This results in numberOfRowsInSection being called and returning the correct number of rows (the number of items in the array) BUT doesn't call cellForRowAtIndexPath. I have created a new navigation based application to try and find a solution but have exactly the same problem! If anyone knows the answer it would be greatly appreciated, i've been tearing what's left of my hair out for the last day! I have put the source for the test project up on my site at

Any ideas? Anyone? If i modify the tutorial code to do the same then i get the same behaviour except that if i go to one of the detail views and go back then the table is finally correctly populated. How do I get the same behaviour when the table is visible?

About the iCodeBlog forum

Currently Online:

4 Guests

Maximum Online: 44


Groups: 2

Forums: 6

Topics: 328

Posts: 771


There are 730 members

There are 1 guests

Brandon has made 87 posts

Top Posters:

bobcubsfan - 54

crazyiez - 30

VertigoSol - 26

AdeC - 17

Uhu - 17

Administrator: Brandon | Moderators: VertigoSol

© - Version 3.1.4 (Build 357)