Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

这个不好描述,不知道这样是否能理解 #146

Open
afskalsfk opened this issue Jun 26, 2019 · 0 comments
Open

这个不好描述,不知道这样是否能理解 #146

afskalsfk opened this issue Jun 26, 2019 · 0 comments

Comments

@afskalsfk
Copy link

用的pagecontroller 没有继承父类

每一个子类会自动执行下拉刷新的操作,,,title可以编辑顺序点击返回并滑动到某一个

例如:我进行编辑,,然后第第三个返回,然后这样调用
[weakSelf.tabBar reloadData];
[weakSelf.pagerController reloadData];
[weakSelf.pagerController scrollToControllerAtIndex:index animate:YES];

但是我向前滑动的时候 第二个是可以正常加载 第一个页面总是不加载,也不走代理
我怀疑 是因为调用刷新的时候已经加载页面,但是没有成功,,滑动的时候终止了数据请求页面也没有数数据,但是已经缓存

我目前这样解决
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[weakSelf.pagerController scrollToControllerAtIndex:index animate:YES];
});
给滑动加个延迟就可以 但是效果一般 如果听懂了请指教。。。。谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant