Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-24-2009, 12:26 PM   #3 (permalink)
Mick
New Member
 
Join Date: May 2009
Posts: 4
Default

Thank you very much. I think my only remaining question is what to put for "myTableView" - I take it that is supposed to stand for the UItableview I am using - but I'm not sure what to call it in my software. Everything I try gives me an "undeclared" error (ie, if I use myTableView or just tableView, I get that error. I also tried self.tableView and that gave me an error saying there was no such structure).

Could the problem be that I did not declare an outlet for the tableview? I'm not sure if that is necessary or not. If that is not the problem, how do I figure out what to put for "myTableView"?

Maybe I should point out - I have been programming for a long time but I am very new to iPhone / objective C programming. I have been following a bunch of UITableView tutorials online, but I've had trouble making them work properly, at least in part because OS 2.2 seems to treat tableviews a little differently - or maybe just more strictly. Also, some tutorials start with projects based on the View-based template, some start with projects based on the Navigation-based template, and it's possible I have mixed and matched them improperly. In other words, perhaps there is something I left out that would have been generated automatically had I used the proper template.

Anyway, thanks again for your continued help!

Quote:
Originally Posted by Oliver Drobnik View Post
That is most likely not your problem.

If you remove the contents of the array you use as data source you would probably call [myTableView reloadData]. This causes the table view to ask for how many rows there are now (0). So it will just draw a blank table.

The method you mention is good for animating the removal of single rows. So the pattern usually is: remove from NSArray, then make the table animate the removal.

I suspect your problem is that you are accessing memory that was previously released.
Mick is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,322
Threads: 39,121
Posts: 171,522
Top Poster: smasher (2,577)
Welcome to our newest member, freney
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:39 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.