We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
用的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]; }); 给滑动加个延迟就可以 但是效果一般 如果听懂了请指教。。。。谢谢
The text was updated successfully, but these errors were encountered:
No branches or pull requests
用的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];
});
给滑动加个延迟就可以 但是效果一般 如果听懂了请指教。。。。谢谢
The text was updated successfully, but these errors were encountered: