I’ve got a UITableView and I want to have a ‘next 25’ feature like in the app store app.
However, I’ve no idea what control they use and how to develop it.
Can someone shed light on it and give me as much info a possible ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first half of the answer above is correct. The second half (using reloadData) isn’t the best way to do it.
Once you have your new data, you should call
insertRowsAtIndexPaths:withRowAnimation:on your table view. That tells the table view that you’ve added a bunch of new rows and lets it animate the addition of the new rows. For example, you might pass UITableViewRowAnimationFade or UITableViewRowAnimationTop. It’s also more efficient, because the table view doesn’t have to reload and redraw the rows that are already in the table.Also, take a look at some of the videos on table views from the 2010 WWDC (you can find them at http://developer.apple.com/iphone and then scroll to the bottom). They’ve got lots of great stuff.