imagePickerController move and scale does not work

Posted by ghostrider on Stack Overflow See other posts from Stack Overflow or by ghostrider
Published on 2013-10-11T22:53:31Z Indexed on 2013/10/30 21:55 UTC
Read the original article Hit count: 170

Here is my code:

-(void) takePhoto
{
    UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
    //imagePickerController.editing = YES;
    imagePickerController.allowsEditing=YES;
    imagePickerController.delegate = self;

    [self presentViewController:imagePickerController animated:YES completion:NULL];
}

#pragma mark - Image picker delegate methdos
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
    [picker dismissViewControllerAnimated:NO completion:nil];

    [self.Picture setImage:[info objectForKey:UIImagePickerControllerOriginalImage]];


}

and I have implemented the delegates

UINavigationControllerDelegate,UIImagePickerControllerDelegate

The image is taken, I can see the move and scale box, but when i move it the box returns to the initial posision - likes it bounces back.

Why is that?

© Stack Overflow or respective owner

Related posts about ios

Related posts about uiimagepickercontroller