TOCropViewController
TOCropViewController copied to clipboard
CALayer position contains NaN


what's wrong
Hi @Rochester-Ting!
Hmm, that usually happens if the controller was initialized with the UIImage being nil. It tries to call image.size, but because it's nil, it causes layout errors in Core Animation.
I thought that the controller had better provisions for checking if image == nil, but in any case, the best way to avoid this is to make sure your code only provides valid UIImage instances to this library. :)
Hope that helped!