objective-c,ios7,uiviewcontroller,presentmodalviewcontrolle
The biggest problem I see is this line: self.view = backView; You are attempting to replace your view controller's view property with a UIImageView - this is not okay. The view controller's view property should not be manipulated in this way. You should add subviews to it, not replace it...
ios,presentmodalviewcontrolle,qlpreviewcontroller,presentviewcontroller
Check documentation here. There is another method, that responds to user actions and returns needed URL: - (BOOL)previewController:(QLPreviewController *)controller shouldOpenURL:(NSURL *)url forPreviewItem:(id<QLPreviewItem>)item ...
iphone,ios8,presentmodalviewcontrolle,presentviewcontroller
Swift code @IBAction func goBack(sender: AnyObject) { var tmpController :UIViewController! = self.presentingViewController; self.dismissViewControllerAnimated(false, completion: {()->Void in println("done"); tmpController.dismissViewControllerAnimated(false, completion: nil); }); } Sample project Objective-c code - (IBAction)goBack:(id)sender { UIViewController *trmpVC = self.presentingViewController; [self dismissViewControllerAnimated:NO completion:^{ [trmpVC dismissViewControllerAnimated:NO completion:nil]; }]; } Sample project...
ios,objective-c,xcode,navigation,presentmodalviewcontrolle
Instead of calling on self try to call dismiss method on _loginWebViewController [_loginWebViewController dismissViewControllerAnimated:YES completion: ^{ self.oauth1Controller = nil; }]; ...
ios,ipad,orientation,uiimagepickercontroller,presentmodalviewcontrolle
Create a custom class of UIImagePickerController. Override supportedInterfaceOrientations meted - (NSUInteger) supportedInterfaceOrientations { //Because your app is only landscape, your view controller for the view in your // popover needs to support only landscape return UIInterfaceOrientationMaskAll; } -(BOOL)shouldAutorotate{ return yes; } //call custom view like this CustomImagePickerViewController *picker = [[CustomImagePickerViewController...