TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.7k stars 938 forks source link

Edit Frame overlaps with the status Bar #195

Closed mugunth87 closed 6 years ago

mugunth87 commented 7 years ago

When i load the library the top frame of the edit functionality overlaps with the status bar. Hence when i try to crop at the top instead of cropping the notification screen opens up. I have attached the screenshot of the issue. I'm using the latest version of the library. img_0003

TimOliver commented 7 years ago

Ahh I don't think anyone has tried pushing a non-circlular cropper to a UINavigationController before.

This should be a really easy fix. It's just a matter of setting cropView's contentInset to account for the status bar.

I don't have anymore time to work on it this this week, so a PR would really be appreciated. :)

TimOliver commented 6 years ago

I ended up fixing this in my iPhone X support. It should be all good now. :)