Issue with uitable view

Joined
Feb 28, 2012
Messages
1
Reaction score
0
Points
1
I am having a UITableView. I have loaded first 5 records in the table.
When I scroll down I want to display next 5 records. Is there any event on scrolling that I can capture?
Or any other suggestion regarding the above issue will be beneficial.
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
I'm unsure how to respond. You'll need to find a source that explains this better than I can here.

First, how did you populate only the first 5 rows?

You populate rows of a UITableView via the method
Code:
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

That is part of UITableViewDataSource protocol.

The driver is indexPath.row which you use to associate with your data, often a sorted array. I haven't worked with Core Data yet so I'm unsure how that works.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top