kishikawakatsumi / PEPhotoCropEditor

Image cropping library for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autolayout Support

Littlequark opened this issue · comments

Rotation and pinch work fine but dragging оf white "crop frame" always crashes with the same result in this method:
[PECropRectView resizeControlViewDidResize:].

** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [177 nan]'
*** First throw call stack:
(0x185928f48 0x19a4dbf80 0x185928e90 0x18a6ad82c 0x18a6ad788 0x18a6ad720 0x18aeb3938 0x10045b730 0x1004662a8 0x18b437330 0x18b060b5c 0x18aeee85c 0x18b43870c 0x18aead8b8 0x18aeaa63c 0x18aeec6cc 0x18aeebcc8 0x18aebc4a4 0x18aeba76c 0x1858e0544 0x1858dffd8 0x1858ddcd8 0x18580cca0 0x190a48088 0x18af24ffc 0x10011886c 0x19ad2a8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

and same thing when not using any AutoLayout at all.