Resolved xCode UITableView

Discussion in 'iOS Programming' started by DennisBlah, Jun 8, 2014.

  1. DennisBlah, Jun 8, 2014
    Last edited: Jun 10, 2014

    DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #1
    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?
     
  2. TheWatchfulOne macrumors 6502

    TheWatchfulOne

    Joined:
    Jun 19, 2009
    #2
    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.
     
  3. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #3
    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!
     

Share This Page