Skip to content

Loading…

Refresh-Animation with Button #38

Open
crolack opened this Issue · 0 comments

1 participant

@crolack

Hi,

im using the current Version of EGOTableViewPullRefresh with a UITableView and and the refresh via scrolling works perfectly.

But I have a UISegmentedControl- Button in my UITableViewController and I want to refresh the table when the segment is changed with the Pull-Animation

I do it with the following code:

self.tableView.contentInset = UIEdgeInsetsMake(66.0f, 0.0f, 0.0f, 0.0f);
[_refreshHeaderView egoRefreshScrollViewDidEndDragging: self.tableView];

The Problem is: It only works only once. On the second call, the Animation stops when the inset shows "Pull down to refresh".

Is there a better way to call the refreshanimation programmatically?

I'm using iOS 5 an ARC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.