Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIImagePickerController on iOS 7: Square mode?

I'm working with iOS 7 now, trying to get the UIImagePickerController to let the user select a square mode since it's a feature in iOS 7 now. Is there something I need to enable to allow this swipe? Relevant code posted below, though it's pretty standard.

UIImagePickerController *cameraView = [[UIImagePickerController alloc] init];
cameraView.sourceType = UIImagePickerControllerSourceTypeCamera;
cameraView.delegate = (id)self;
[self presentViewController:cameraView animated:YES completion:nil];

I've been scouring the messy iOS 7 documentation that's available, but I can't even tell if they changed the developer library at all - I don't see ANYTHING new in it.

like image 926
Rob Avatar asked Sep 21 '13 23:09

Rob


1 Answers

set allowEditing to YES. from the result dict use the key UIImagePickerControllerEditedImage

then you will have the squared image.

i find no way to let the user select, which format he want :(

like image 136
thorb65 Avatar answered Oct 23 '22 07:10

thorb65