pujiaxin33 / JXSegmentedView

A powerful and easy to use segmented view (segmentedcontrol, pagingview, pagerview, pagecontrol, categoryview) (腾讯新闻、今日头条、QQ音乐、网易云音乐、京东、爱奇艺、腾讯视频、淘宝、天猫、简书、微博等所有主流APP分类切换滚动视图)
MIT License
2.68k stars 369 forks source link

元素列表中的cell需要传控制器的时候会闪退 #178

Closed DuQuanzhong closed 1 month ago

DuQuanzhong commented 2 years ago

Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<AVPlayerViewController: 0x1049b3c00> should have parent view controller:<JXSegmentedView.JXSegmentedListContainerViewController: 0x1050e9e90> but actual parent is:<NwdnBeta.NwdnStoryHomeViewController: 0x10466b040>

JXSegmentedListContainerViewController 这个控制器我看是私有的 怎么能获取到 谢谢

pujiaxin33 commented 2 years ago

对于列表是VC的情况,你外部使用的地方就不要addChild:列表VC了。