Questions tagged [presentmodalviewcontroller]

`presentModalViewController` is a `UIViewController` instance method that presents a modal view controller. This is deprecated as of iOS 6, superseded by `presentViewController`.

presentModalViewController is an iOS UIViewController instance method that presents a modal view controller. This is deprecated as of iOS 6, superseded by presentViewController. According to the Appendix A - Deprecated UIViewController Methods:

A method identified as deprecated has been superseded and may become unsupported in the future.

The presentModalViewController is the correct method when presenting modal views for iOS versions prior to version 5.0. The presentViewController is recommended effective iOS 6.

A view controller presented via presentModalViewController is dismissed with dismissModalViewControllerAnimated. A view controller presented via presentViewController is dismissed via dismissViewControllerAnimated.

References:

568 questions
0
votes
1 answer

Custom WEPopover push controller

I'm using the source code from WEPopover project to create a popup on iPhone. (https://github.com/werner77/WEPopover) I try to push a view controller when I tap on a row in the uitableview displayed in the popup. The pushed view controller in iOS6…
dorin
  • 873
  • 2
  • 15
  • 34
0
votes
1 answer

warning unable to restore previously selected frame - cannot open UITabBarController Modally

I am trying to present a tabBarController modally. I am trying to do that by following code: summaryGraphManager *summary = [[summaryGraphManager alloc] initWithNibName:@"SummaryGraphManager" bundle:nil]; [summary…
0
votes
1 answer

App crashes on dismissViewControllerAnimated:

I have a regular view controller that attempts to present a controller via presentViewController or by pushing the controller using the UINavigationController. When I call the dismissViewControllerAnimated: method or click the back button when it's…
0
votes
1 answer

Popover between view controllers and cancel button

I have two tableviews, let´s say one and two, and one presents two when a textfield is tapped, and for this i have: -(void) setProducts:(UITextField *) box { UIViewController *selectInBox = [self.storyboard…
0
votes
1 answer

I have a bug with shadow when I resize modal view controller

I want to resize and reposition modal view. Resize works well. Reposition doesn't work. There is bug with shadow. Please see screenshot number two. Is it possible to lower shadow? -(IBAction) onModal:(id)sender { UINavigationController *nav =…
Voloda2
  • 12,359
  • 18
  • 80
  • 130
0
votes
1 answer

xcode presentModalViewController leaves old ViewController still active in background using AVCam

Have a problem with an application using AVCam. The application takes photos and saves them to the roll. Upon opening the app it takes the pictures perfectly and saves them just the way it should. However, once I leave that view controller to go…
Jeff Stone
  • 319
  • 1
  • 4
  • 14
0
votes
1 answer

Objective-C: Delegate is nil in modal in navigation controller

I've got a ViewController inside a navigation controller that needs to present a modal. The ViewController has this as its header: @interface ViewController : BaseViewController and in the IBAction that presents the modal: …
0
votes
2 answers

Changing size of modal view controller properly with presentViewController:animated:completion:

Prior to IOS 6 I used below code to present modal view with customized size: - (void) showModalViewWithController:(GUIViewController*) _viewController { [UIView beginAnimations:@"" context:nil]; [self…
0
votes
4 answers

Issue in UIActivityIndicatorView in iPhone?

Currently i am working in iphone app, Using UIWebView (Webpage shown in presentModelViewController) to show webpage on the screen, then i add UIActivityIndicatorView to show in load url request, but the UIActivityIndicatorView didn't show in the…
0
votes
1 answer

Present UIImagePickerController (or any view controller) from UIView

Ok so I'm trying to present a view controller from a UIView like this: CSCamera *camera = [CSCamera cameraFromYamlNode:answer forView:view]; [view addSubview:camera.view]; Now my CSCamera view is basically a view controller that does some custom…
0
votes
1 answer

presentModalViewController

I am using the presentModalViewController over a splitview. My problem is now, that my view on the splitview is for Landscape view but my view changes always to the other view. Can I check the current Ipad view? I used this for the…
DeFlo
  • 141
  • 1
  • 1
  • 9
0
votes
1 answer

[PointInfoController endAppearanceTransition]: message sent to deallocated instance 0x74d5e90

I need a little help here, I've loaded a view by modal and basically I'm now trying to dismiss this view now but it keep crashing after the view goes. It says * -[PointInfoController endAppearanceTransition]: message sent to deallocated instance…
0
votes
1 answer

How to present modal view from UIPopoverController?

I have this: And have this, when presenting modally: Some code jsut before presenting webview: webViewController.modalInPopover = YES; webViewController.modalPresentationStyle = UIModalTransitionStyleCoverVertical; And have this in…
0
votes
2 answers

Unable to switch between UIViewControllers using storyboard

I am new to objective C so please forgive me if this is a stupid question (and I have searched!) I am using storyboards in xcode (4.4.1) and I have 2 UIViewControllers I am trying to programmatically switch between them (not sure if that's the right…
Brett Gregson
  • 5,867
  • 3
  • 42
  • 60
0
votes
1 answer

iOS Storyboard Switch to a View that has no segue on AppDelegate

I have a one time agreement view that will only show up when user launches app first time. I use storyboard IOS 5.1 and My rootview is a navigationviewcontroller. My agreement view has no connection with navigation controoler I just want to present…