Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh-Animation with Button #38

Open
crolack opened this issue Nov 14, 2011 · 0 comments
Open

Refresh-Animation with Button #38

crolack opened this issue Nov 14, 2011 · 0 comments

Comments

@crolack
Copy link

crolack commented Nov 14, 2011

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant