Still pretty new to asking questions, so let me know if you need any other info.
I have an app with a custom UITableView and a custom cell xib and class. In my class, I set the frame for a UITextView as follows:
let size = CGSizeMake(width - 60, CGFloat(MAXFLOAT))
textView.frame = CGRectMake(5, 0, size.width, size.height
Simple, right? And this works great on my iPhone 6. However, when I test with the iPhone 5 in the simulator, it crashes with:
Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [137 nan]'
I've tried cleaning and rebuilding the app, deleting it in the sim to make sure there wasn't corrupt data. When I print size it certainly seems correct:
(260.0,3.40282e+38)
I've searched for this, but none of the other posts helped with my specific issue. Any pointers? It's just so strange that it works on some devices but not others.
Thank you!
Aucun commentaire:
Enregistrer un commentaire