Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DennisBlah

macrumors 6502
Original poster
Dec 5, 2013
485
2
The Netherlands
Hey all,

I have a small question. I'm looking for an option to do like.. Refresh an tableview, once the user swipes the tableview out of its bounds to the top or bottom.

That when you scroll down to the bottom, and go further there will be an label like:

'release to refresh'.

Is this possible, and how can this be done?
 
Last edited:
It sounds like you want to implement pull-to-refresh functionality in your table view. Apple has provided a control that you can use. It's called UIRefreshControl. It take doesn't take much to set it up. If you do a Google search you should find some tutorials. I would look at Apple's documentation too.
 
It sounds like you want to implement pull-to-refresh functionality in your table view.

Wow that's amazing and too hard to add! :)
However :eek: on a other view with costum cells my cells being changed smaller than I set :eek:

Fixed it with:
Code:
- (float)tableView: (UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
 return cellHeight;
}

Thanks for pointing me to this TheWatchfulOne ! cudo's!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.