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
点击导航条上的 [排行] 按钮, 滑动顶部排行栏,排行栏会滑动回主页的顶部栏; // 如果自定义返回按钮后, 滑动返回可能失效, 需要添加下面的代码 __weak typeof(viewController)Weakself = viewController; self.interactivePopGestureRecognizer.delegate = (id)Weakself;
The text was updated successfully, but these errors were encountered:
这个bug是因为作者直接将自定义的view添加到导航栏上,标准做法是设置为NavigationItem的titleView,即可解决此bug。小弟正在研究该项目,今天看了一点,还有几个地方需改进。mainViewController由登录控制器present出,不太好,肯定是直接将mainViewController设置为Window的根控制器,登录控制器销毁就可以了,但作者登录控制器中”third.clickLogin“block中强引用self,用弱引用即可。 还有在ALinNewStarViewController中设置self.collectionView.mj_header的block {self.currentPage = 1;self.anchors = [NSMutableArray array]; [self getAnchorsList];} 时出现了小bug(如果不停下拉刷新,会出现数据越界问题),试想,作者在下拉刷新时清空了数组,在异步返回数据重新刷新tableView,如果不停下拉刷新,就可能造成刷新数据那一刻将数组清空,从而出现数组越界问题,解决办法只需要在数据返回的时候判断,if {currentPage == 1} { // 清空数组} 即可。暂时只看了这些代码,继续学习中,共勉。。。
Sorry, something went wrong.
No branches or pull requests
点击导航条上的 [排行] 按钮, 滑动顶部排行栏,排行栏会滑动回主页的顶部栏;
// 如果自定义返回按钮后, 滑动返回可能失效, 需要添加下面的代码
__weak typeof(viewController)Weakself = viewController;
self.interactivePopGestureRecognizer.delegate = (id)Weakself;
The text was updated successfully, but these errors were encountered: