I am trying to force EGORefreshTableHeaderView to update from the code. When I pull down everything works perfect and the TableView (root) gets refreshed. But I have a modal view where the user can subscribe to certain entities. When he subscribes to one the reload method in the first (root) table view gets triggered. This method establishes a connection to a server, loads some specific data based on the subscription, stores it in a CoreData DB and updates the TableView (root).
The problem is that when the user is only connected to 3G or Edge network the download, which is processed in an own thread, can take several seconds. To indicate the user that something happens I would like to show the EGORefreshTableHeaderView.
I found out that I can set the indent of the refresh view and manually show the loading icon but I was wondering if there is not an easier solution by just triggering a delegate or a method on the EGORefreshTableHeaderView?
Did you try using
egoRefreshScrollViewDataSourceStartManualLoading?Assuming your
EGORefreshTableHeaderViewinstance is named _refreshTableHeaderView, then a call like:works for me…
So, it’s been too long since I used this, and I forgot I applied the change myself…
I modified
EGORefreshTableHeaderDelegate(declared inEGORefreshTableHeaderView.h) to add this additional protocol:And the implementation (in
EGORefreshTableHeaderView.m):Let me know if you need more help there.
(And thank-you enormego for the great work!)