pujiaxin33 / JXSegmentedView

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

crash #218

Closed wenhaoChan closed 5 months ago

wenhaoChan commented 1 year ago

Hi, I found out there was a crash in bugly

here's my code: (system : iOS 15.7 (19H12))

the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:

0 CoreFoundation __exceptionPreprocess + 216 5 UIKitCore -[UICollectionView layoutSubviews] + 316 6 layoutSubviews (JXSegmentedCollectionView.swift:29) 7 layoutSubviews (:0) 8 UIKitCore -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2556 18 UIKitCore -[UINavigationController setNavigationBarHidden:animated:] + 156 19 $sSo22UINavigationControllerC8FlatBaseE36setupNavigationBarAppearanceIfNeeded013appearingViewB0ySo06UIViewB0C_tFyAG_SbtcfU0TA (:0) 20 $sSo16UIViewControllerCSbIeggy_AB10ObjectiveC8ObjCBoolVIeyByyTR (:0) 21 $sSo16UIViewControllerCSbIeggy_ABSbytIegnnrTRTA (:0) 22 $sSo16UIViewControllerCSbytIegnnr_ABSbIeggyTRTA (:0) 23 $sSo16UIViewControllerCSbIeggy_AB10ObjectiveC8ObjCBoolVIeyByy_TR (:0)

I hope you can help me on this.

Thanks.

pujiaxin33 commented 5 months ago

Thanks for your information. I have identified the issues and fixed it.