gltwy / LTScrollView

ScrollView嵌套ScrolloView(UITableView 、UICollectionView)解决方案, 支持OC / Swift(持续更新中...)实现原理:http://blog.csdn.net/glt_code/article/details/78576628
MIT License
1.05k stars 204 forks source link

LTAdvancedManager 调用 scrollToIndex(index: Int)无效 #106

Closed WuFuPeiQian closed 1 year ago

WuFuPeiQian commented 3 years ago

将“ pageView.scrollToIndex(index: index)” 修改为“titleView.scrollToIndex(index: index)”有效

TomeLuo commented 3 years ago

LTPageView文件下115行注释掉就可以 // guard !layout.isSinglePageView else { return } 用的地方,加个延时 DispatchQueue.main.asyncAfter(deadline: .now()+0.1) { [unowned self] in self.advancedManager.scrollToIndex(index: self.selectedIndex) }

gltwy commented 2 years ago

@TomeLuo @WuFuPeiQian 已修复~ 请更新到最新版本

WuFuPeiQian commented 2 years ago

验证成功 @gltwy