Home > iphone, programming > Extending EGOTableViewPullRefresh Project

Extending EGOTableViewPullRefresh Project

During my work on my first “semi-pro” iPhone application, I wanted to find good and easy way for refreshing data in table view. I found EGOTableViewPullRefresh project, that is used i.e. in Facebook application for iPhone. This is that text and arrow at the very top that downloads new content if you pull down the view during browsing news feeds.

I wanted to have such functionality in the bottom of my view for downloading older posts (Facebook application solution is simple cell, which after tapping triggers downloading older feeds). This project however supports header only. I extended it to make it possible for placing this “pull to refresh” object in the footer, at the very end. My forked project with this change you can find here: zbyhoo/EGOTableViewPullRefresh

I hope that authors will accept or maybe will be inspired by my modification and pull request.

Categories: iphone, programming Tags: , ,
  1. Xiantao Jiao
    December 13, 2011 at 12:29


    I’m afraid your footer view is not flexible to use, you see each time the content size of scroll view changes, footer view need to be repositioned, but the reposition code is on class user side.

    Have you consider how to do auto-reposition?


    • December 13, 2011 at 12:44

      Maybe footer view is not flexible, but it was enough for my home project.

      I’ve never thought about auto-repositioning, but what you can do is to move code from repositionRefreshHeaderView selector of RootViewController to some new method of EGORefreshTableFooterView class with single argument (current size of content view in table view). Then you should call this method each time content of table view changes or use custom notifications through notification center or any other method you like, because you have to somehow tell footer view that the content height of table view has changed. Haven’t tried it, but I’m sure it will work.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: