I am using EGOTableViewPullRefresh for atable view in my app a开发者_Go百科nd it works great. However I would like to be able to have the pull down effect happen on the viewDidAppear for the first load of the screen.
Is there an easy way to simulate the user scrolling the UITableView or to force EGOTableViewPullRefresh to show itself?
This should accomplish what you want, it adds an inset then tells EGO that scrolling just completed. EGO will remove the inset when its finished.
myUITableView.contentInset = UIEdgeInsetsMake(66.0f, 0.0f, 0.0f, 0.0f);
[_refreshHeaderView egoRefreshScrollViewDidEndDragging: myUITableView];
精彩评论