This is iPhone app code but when i run into ipad retina simulator or
ipad then it's crash the app. i have check many times & i realise
the picker object is nil. but it's works good on iPhone simulator . Any one any Idea about this thing.(This app made only iPhone but run in iPad Retina & iPad)
UIImagePickerController * imagePicker = [[UIImagePickerController alloc] init]; // image picker alloc
imagePicker.delegate = self; // delegate call by self
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; //Pick image in Library
[self presentModalViewController:imagePicker animated:YES]; // OPen Library
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
imgImage = info[UIImagePickerControllerOriginalImage]; //Get Orginial Images
imgData = [[NSData alloc] initWithData:UIImageJPEGRepresentation((imgImage), 0.9)]; // Jpg image format
[picker dismissModalViewControllerAnimated:YES];
} // pick image from this method