2
- (IBAction) buttonAction:(id) sender {
 if (self.picker == nil) {   
        self.picker = [[UIImagePickerController alloc] init];
        self.picker.delegate = self;
        self.picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
        self.picker.allowsEditing = NO;     }  [self.navigationController presentModalViewController:_picker
    animated:YES];     

}

  • (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

    [self dismissModalViewControllerAnimated:YES];
    
    UIImage *myImage = (UIImage *) [info
    objectForKey:UIImagePickerControllerOriginalImage]; 
    
     if (myImage == nil) NSLog(@"Image nil");
    
    }
    

iPhone デバイスでは正常に動作しますが、iPhone 2x モードで iPad では動作しません バグ? それとも私が間違っていますか?

4

0 に答える 0