![iOS9中的[_UIFlowLayoutSection updateEstimatedSizeForSection]中的UICollectionView崩溃 – Xcode7,第1张 iOS9中的[_UIFlowLayoutSection updateEstimatedSizeForSection]中的UICollectionView崩溃 – Xcode7,第1张](/aiimages/iOS9%E4%B8%AD%E7%9A%84%5B_UIFlowLayoutSection+updateEstimatedSizeForSection%5D%E4%B8%AD%E7%9A%84UICollectionView%E5%B4%A9%E6%BA%83+%E2%80%93+Xcode7.png)
任何的想法?
解决方法 我刚下载了你的项目.首先转到您的故事板并单击您的标签,在标识符窗格中将标记值更改为100.在您的cellForItemAtIndexPath函数中替换当前实现
let cell = collectionVIEw.dequeueReusableCellWithReuseIDentifIEr(String("LabelCell"),forIndexPath: indexPath)let str = "dsadasdadaddsfsf"let len = Int(rand()) % str.characters.countlet label = cell.contentVIEw.vIEwWithTag(100) as! UILabel;label.text = str.substringToIndex(str.startIndex.advancedBy(len))cell.setNeedsLayout()cell.layoutIfNeeded()return cell 最后在视图控制器类中注释掉第33行
@H_403_2@ 总结以上是内存溢出为你收集整理的iOS9中的[_UIFlowLayoutSection updateEstimatedSizeForSection]中的UICollectionView崩溃 – Xcode7全部内容,希望文章能够帮你解决iOS9中的[_UIFlowLayoutSection updateEstimatedSizeForSection]中的UICollectionView崩溃 – Xcode7所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)