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.