jovany
jovany

Reputation:

starting at row 2 or 3 UITableView

I wish to start at let's say row 2 with my content. I've tried putting in an integer for indexPath but that doesn't work. So in the following example circumference would start at the second row ( and the rest would follow).

http://lh3.ggpht.com/_ixq8Dp4ESMo/SYuylQNqNCI/AAAAAAAAAFk/pPW6pbIlPGo/s576/Screen1.jpg

Upvotes: 0

Views: 127

Answers (1)

Stephen Darlington
Stephen Darlington

Reputation: 52565

Your data source returns a cell when asked for a particular NSIndexPath. You just need to change it so that for the first two rows it returns a null string (@"").

Having said that, doing this kind of seems pointless. If you want to have some blank space at the top of your table there are better ways of doing it (header view for one).

Upvotes: 1

Related Questions