When I load my view controller, I get this error:
*** Terminating app due to uncaught exception 'CALayerInvalid', reason: 'layer <CALayer: 0x7fda42c66e30> is a part of cycle in its layer tree'
I do not know why. I think that maybe I added a third-party structure that referenced the layers, but I deleted it in the troubleshooting process. Any ideas would be great.
EDIT
This happens during the viewDidLoad my tableViewcontroller . I have a tableView on my second vc. I narrowed it down to failure when setting heightForRowAtIndexPath on the 4th user cell. The cell is on a static tableView .................: / tableView closer!
Here is my heightForRowAtIndexPath :
override func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat { print("idx = \(indexPath.row)") return super.tableView(tableView, heightForRowAtIndexPath: indexPath) }
Pretty common. Any thoughts on where else this might be triggered?
ios9 swift2 calayer
Brie
source share