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

Objective-C: Help needed to understand why two methods react differently when accessing a UIView in two different ways

I feel bad asking three questions in the space of two days but I am stuck and searching the forum I couldn't find the answer so I hope someone can help me - all part of the fun of learning I suppose! In my program I have three views which go in the…
user1309044
  • 317
  • 3
  • 13
0
votes
2 answers

presentModalViewController from TableView

I have created a custom cell with buttons. the buttons should present a modalViewController, one for the email and another for a webView. I have also created a delegate to get a callback from the class. so in the cell class: _delegateAction =…
NDM
  • 944
  • 9
  • 30
0
votes
1 answer

IOS - How to update the view in presentModalViewController?

I am new to IOS development. In my app I want to replace the view model that's being presented. I show my initial view by calling: presentModalViewController When I replace the view, I don't want the entire animation to run. I just simply want to…
vondip
  • 13,809
  • 27
  • 100
  • 156
0
votes
1 answer

Create a UIView that can be presented modally OR pushed onto the navigation stack

I have an item detail view which I would like to use for two purposes: 1) to create a new item 2) to edit an existing item When editing, the view will be pushed onto the navigation stack, getting the nav bar from it's parent. On item creation, I…
0
votes
1 answer

iOS presentModalViewController not allowing previous views to show through

I am using presentModalViewController to try and display a UIView on top of some other views. I call presentModalViewController from controller1. I am trying to display views from controller2. From controller1 I call controller2 as follows: -…
whatdoesitallmean
  • 1,586
  • 3
  • 18
  • 40
0
votes
1 answer

Creating a floating view on iPad

My iPad application has a SplitViewController, a MasterViewController and a DetailViewController. From the DetailViewController, I need to create a temporary view (managed with a PaletteViewController: UIViewController, and designed in a xib file)…
Denis
  • 775
  • 7
  • 22
0
votes
1 answer

Where should I present Modal View Controller?

I have an application with a UITabBarController at its top level. I track which tab a user is on and store it so that when they reopen the application they are on the tab they were on when it was closed. So there is no default tab when the app…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
0
votes
2 answers

Present a modal view flipping a view in iPad

I have a rectangular view at the center of a view in iPad. When I press a button I want that rectangular view to flip and show a modal view with some information. How can achieve this instead of flip all the entire main view? Thanks in advance.
Samui
  • 1,384
  • 3
  • 14
  • 28
0
votes
2 answers

iPhone Does releasing modal view controller also pop pushed controllers onto stack?

Lets say you present modal view controller (which is navigation controller) and push onto navigation stack 3-4 view controllers. Would dismissing modal view controller also pop these controllers from navigation stack, or will they continue to linger…
0
votes
4 answers

UIPopoverController modal issue

I have UIPopoverController UINavigationController *navVC = [[[UINavigationController alloc] initWithRootViewController:loginVC] autorelease]; navVC.modalInPopover = YES; navVC.modalPresentationStyle =…
0
votes
1 answer

presentModalViewController slides a new view too far up and goes above the top of the screen

-(void)reviewClicked:(id)sender { ReviewViewController *newView = [[ReviewViewController alloc] init]; newView.delegate = self; UINavigationController *navCon = [[UINavigationController alloc] initWithRootViewController:newView]; …
0
votes
1 answer

Present UIViewController modally within a UIViewController that does not cover full screen

Basically once I dismissed the modal view, my customized UIToolbar no longer clickable. Here is my design: a customized UIToolbar at the bottom of the screen top part of the screen is associated with a container view controller [note] I added the…
0
votes
1 answer

presentModalViewController: Differences

What is the difference between: [self.navigationController presentModalViewController:nav animated:YES]; and [self presentModalViewController:nav animated:YES]; Where self is a subclass of UIViewController. Along with that, does it matter how I…
-1
votes
3 answers

Dismissing 2 or more ViewControllers

Is it possible to dismiss 2 viewControllers efficiently? I currently have 3 (or more) viewControllers. View1 > presents View2 , View2 > presents View3, etc.. then when an action is triggered in View3 (or 4,5..), I need to return to the View1. How is…
-1
votes
1 answer

Modal View not displaying bottom view correctly

I am currently presenting a modal with a view at the bottom. Unfortunately, when the modal is displayed, the view controller is pushed down some and cuts off the bottom view found on this controller. Is there a way to calculate how much the view is…
paul590
  • 1,385
  • 1
  • 22
  • 43
1 2 3
37
38