的一部分。當我打開我的視圖控制器我得到這個錯誤:層是週期的在其層樹的iOS 9斯威夫特2
*** Terminating app due to uncaught exception 'CALayerInvalid', reason: 'layer <CALayer: 0x7fda42c66e30> is a part of cycle in its layer tree'
我不知道爲什麼。我想我可能已經添加了與圖層混淆的第三方框架,但是我在排除故障時將其刪除了。任何見解都會很棒。
編輯
這期間我tableViewcontroller
的viewDidLoad
發生。我有我的第二個VC的tableView。我已經縮小到它在第四個定製單元上設置heightForRowAtIndexPath
時崩潰了。該單元格處於靜態tableView
.................:/越來越近!
這裏是我的heightForRowAtIndexPath
:
override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
print("idx = \(indexPath.row)")
return super.tableView(tableView, heightForRowAtIndexPath: indexPath)
}
非常通用。任何想到這可能會導致什麼?
你能顯示相關的代碼? – Raptor