开发者

EGOTableViewPullRefresh - Simulate a pull down on viewDidLoad

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜