ios - iOS7 UIImagePickerController allowsEditing not working correctly -


in someviewcontroller:

uiimagepickercontroller* picker = [[uiimagepickercontroller alloc] init];     picker.allowsediting = yes;     picker.sourcetype = uiimagepickercontrollersourcetypecamera;     picker.delegate = self;      [self presentviewcontroller:picker animated:yes completion:^{      }]; 

i take photo , next screen (due allowsediting = yes;) have option crop photo square shape. white square rectangular appears on initial position on photo i've taken , try move around. can drag it, every time release finger, goes position held initially. no glitches. when release finger, white framed rectangular animates easeout animation position dragged from.

it not same if allowsediting set no. if set no, cropping rectangle not appear.

previously, thought problem appears on ios 7, realise happens on ios versions. don't understand how happened, started when started using xcode 5 , building ios7. kept xcode 4.6.3 on mac tried build app again older xcode, did not fix anything.

i need mention when load image photo library, cropping works fine, supposed to. have problems when taking new photo.

furthermore, when initial crop rectangle appears, although unable drag rectangle around photo, can still zoom in , out. when zoom in, can drag (smaller) cropping rectangle around photo within boundaries of initial rectangle's position & size. if cross boundary, cropping rectangle animates inside of invisible boundaries.

anyone, please help...

it seems bug uiimagepickercontroller. trying figure out did wrong. started couple of blank new projects test functionality. checked out apple's official sample code:

https://developer.apple.com/library/ios/samplecode/photopicker/introduction/intro.html


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -