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

Issue with resetting the image #1

Closed nishan-guiddit closed 9 years ago

nishan-guiddit commented 9 years ago

Hi Tim,

I have implemented the crop view and it works perfectly fine. Is there a way to reset the image. I'm trying to incorporate filters into the crop view your suggested. But filters are implemented fine, but the applied filters are not shown in the imageview. I'm not able to reset the imageview which the cropview has already used.

Can you please help me out ? How image can be reset in your code or is there any way to do so ?

TimOliver commented 9 years ago

Hi there nishan!

Um... do you have a screenshot? I'm not exactly sure what you're trying to do here. The crop view works off one UIImage, but there are 2 UIImageView elements inside the crop view that display it.

cherishloveyou commented 9 years ago

i think he need do/undo!

TimOliver commented 9 years ago

Sorry guys. I'm not exactly sure what you're trying to achieve here. :/

You can reset the cropping/rotation settings by tapping the white button in the very middle of the toolbar.

The main function of this view controller is to crop/rotate images, so if you want to apply filters to them, I'd recommend looking at Instagram's model of having a separate view controller to apply filters to the already-cropped image. Given how complex this thing ended up becoming, trying to apply filters to images inside this view controller might be kind of messy. ;)

In any case, if you've already got it somewhat working, I'd love to see that! Please consider uploading a sample app showing that off. And as always, I'm happy to review and potentially merge any pull requests you send my way!

Thanks!