Friday, December 6, 2013

uitableview pull to refresh

In the pull-down refresh when using EGORefreshTableHeaderView,
 - (void) egoRefreshTableHeaderDidTriggerRefresh: (EGORefreshTableHeaderView *) view {

[Self reloadTableViewDataSource];
[Self requestData];
/ / [Self performSelector: @ selector (doneLoadingTableViewData) withObject: nil afterDelay: 3.0];
}

After the requested data, how that data has been updated, without the need for regular 3.0 seconds, sent directly doneLoadingTableViewData it.
Reply:
Whether the data has been updated requestData depends on your approach, in the end is to use a proxy or whatever method of notification self.
Reply:
Data has been updated sure there is a callback method, doneLoadingTableViewData can
call the callback method in
Reply:
reference to the second floor of the reply: finished
data updates must have a callback method to invoke doneLoadingTableViewData In the callback method in



Positive Solutions

No comments:

Post a Comment