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

dismissModalViewAnimated actually removes parent view

I have an application that allows a user to add a picture to a log. If the user chooses to add from library, everything is fine, but if a user chooses to take a picture with the camera there's an issue: When the camera modal view is animated in and…
PinkFloydRocks
  • 808
  • 3
  • 14
  • 29
0
votes
1 answer

can not do modal on modal view controller

Goal : show a splash screen in certain of time (3 seconds ) then log-in view appears for authentication process and if this authentication is successful, go to main page ( this effect is used by many applications such as facebook ) What I am doing…
tranvutuan
  • 6,089
  • 8
  • 47
  • 83
0
votes
1 answer

How to call presentModalViewController from ParentViewController Method in paging app

I'm using a Page App. I have a viewController A and this have a scrollView with 3 others viewController lets call them ViewController B,C,D and I switch controllers B,C,D using scroller's paging. My problem is: I want to call…
0
votes
1 answer

Create Own View Controller I can present modally

I want to create an object that I can present modal view, like UIImagePickerController. With UIImagePickerController I create the object, configure it, then present it modally. like: UIImagePickerController *imagePicker =…
Phil
  • 410
  • 3
  • 12
0
votes
2 answers

Implement the setSelectedIndex to tabBarController with presentmodalview to the tabbarcontroller

I am using ARC and Storyboard in my iphone application. I have simple input text view with button, On clicking button I am implementing presentModalvuewcontroller to a mainview with Tabbarcontroller. It is working fine. Now I need to conditionally…
MobileGeek
  • 2,462
  • 1
  • 26
  • 46
0
votes
1 answer

Custom UIViewController IOS4.3

I have static library and my custom view controller inside (f.e mainVC). My static library will be built in some third party application. I have to show mainVC.view instantly after third app did launch. I do: [window addSubView:mainVC.view]; but…
0
votes
2 answers

Knowing when a modal animation is complete

I allow users to add new items using a modal, presented vertically. When they are done, the modal slides out of view and the new item is added to the list. I want the user to see the impact of his addition by inserting the new row with animation,…
Ben Packard
  • 26,102
  • 25
  • 102
  • 183
0
votes
1 answer

Custom inputView not animating correctly during modal presentation

I start by presenting a viewController modally, using the default animation where the view appears from bottom to top. In viewWillAppear, I give first responder to a text field that has a custom keyboard as its inputView. When the view animates for…
0
votes
2 answers

dismissModalViewController issue in iOs

I have three view controllers, say A, B and C. I am navigating through this views like follows; A -presenting-> B -presenting-> C -presenting-> B And from B, if I dismiss I want to navigate to C. But instead of that, now it is moving to A. I can't…
0
votes
1 answer

ViewControllers, presenting and dismissing the right one

This problem is a little hard to explain. I'll do my best, hoping to make myself clear. I've got 3 view controllers, let's call them 'View1', 'View2' and 'View3'. On the top of their views, there are 3 buttons with the same names. Each button…
Aleph72
  • 877
  • 1
  • 13
  • 40
0
votes
1 answer

Presenting Modal View Controller in iOS not working

I need to show another view from rootviewcontroller on button click. I have written the following code but it doesnt work. Any ideas why? In my app delegate method i have the following code - - (BOOL)application:(UIApplication *)application…
0
votes
1 answer

How to load one view from a selection of 3 all contained in one XIB file?

In short, how can i manage to load a SPECIFIC uiview from a set of UIViews all contained in one XIB file? iboutlets? how? In some cases i would like the first view displayed instead of the 2nd, sometimes i want the 3rd displayed instead of the 1st.…
Pavan
  • 17,840
  • 8
  • 59
  • 100
0
votes
1 answer

presentModalViewController is not working?

I am making an application using two view controlers. When I am working on my first view I have posibility to go to another view using button "Settings" and method conected to this button looks like this: -(IBAction)Settings:(id)sender{ [self…
0
votes
1 answer

Modal View Full Screen not returning to view properly

I've been having trouble trying to create a full screen modal view on an iPhone application, but when I present it if it is in landscape, the view will be in one small portion of the screen. If it appears, and then you rotate it to a different…
CBredlow
  • 2,790
  • 2
  • 28
  • 47
0
votes
2 answers

Enable Zombie Objects is not enough to help debug my issue - what else can I do?

I'm getting the following runtime error and I cannot determine for the life of me WHYYYY. The error is Thread 1: EXC_BREAKPOINT (code=EXC_1386_BPT, subcode=0x0) which seems to happen whenever I execute the dismissModalViewController:animated or the…