Note that there are some explanatory texts on larger screens.

plurals
  1. PO'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
    text
    copied!<p>*<em>My view is in land scape mode i am saving image and i want that image back for that i my code is below and i am geting error "Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'" *</em> what can i do for iphone?</p> <pre><code> `- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker { [self dismissModalViewControllerAnimated:YES]; [picker release]; } - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissModalViewControllerAnimated:NO]; imageDoodle.image = [info objectForKey:@"UIImagePickerControllerMediaMetadata"]; } -(IBAction)loadfromalbumclicked:(id)sender { UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing=NO; picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; // self.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:picker animated:YES]; } -(IBAction)savePrint{ //Save image to iOS Photo Library UIImageWriteToSavedPhotosAlbum(imageDoodle.image, nil, nil, nil); //Create message to explain image is saved to Photos app library UIAlertView *savedAlert = [[UIAlertView alloc] initWithTitle:@"Saved" message:@"Your picture has been saved to the photo library, view it in the Photos app." delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil]; //Display message alert [savedAlert show]; }` </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload