Wenn UIImagePickerController entlassen wird, wird die Ansicht nur in iOS 6.0 auf 20 px nach oben verschoben

BEARBEITEN : Ich benutzeUIStoryBoard.

ich habepresented so was:

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];

imagePicker.delegate = self;

imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; //| UIImagePickerControllerSourceTypeSavedPhotosAlbum ;
imagePicker.mediaTypes = [NSArray arrayWithObjects:(NSString *) kUTTypeImage,nil];

if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary])
{
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
    {
        imagePicker.allowsEditing = YES;
        [self.navigationController presentViewController:imagePicker animated:YES completion:^{

        }];  
    }
}

Jetzt, wenndissmissed

-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
   UIImage *image = info[UIImagePickerControllerEditedImage];
    NSLog(@"Image : %@",image);
    [self dismissViewControllerAnimated:YES completion:^{
    }];
}

Jetztview wird so wie in gezeigtfiqure :

BEARBEITEN : view wird bei Entlassung auf 20px hochgeschoben.

BEARBEITEN : Dies ist nur in iOS 6.0 möglich

Antworten auf die Frage(4)

Ihre Antwort auf die Frage