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
-1
votes
1 answer

XIB file is fitted with whole screen in iOS Swift

I have been trying to show UIViewController on the whole screen while using the present modal? here is the output image [![enter image description here][1]][1] I have xib viewController where I am trying to send value to another viewController using…
-1
votes
2 answers

presentModalViewController problem - iphone sdk

I am using custom tabbar without the tabbar controller. When I try to add the viewController using [self presentModalViewController:controller animated:YES]; edit: changed to presentsModalViewController. which is for MFMailComposeViewController it…
Naveed Rafi
  • 2,503
  • 5
  • 32
  • 40
-1
votes
3 answers

Present and dismiss view modally in tabbed application using swift

I've created a tabbed application and am able to present a view modally using the code below, however, I'm stuck on dismissing the view and displaying the tab bar and first view controller. let storyboard = UIStoryboard(name: "Main", bundle:…
Sami
  • 1,374
  • 1
  • 16
  • 43
-1
votes
2 answers

How i can avoid this Status bar issue in IOS?

In this below screenshot you can see when i present modally than the base viewController status bar is quickly hidden and when i dismiss this modal than is will quick show. so, How i can avoid this and fixed status bar when present modally. Thank…
Virani Vivek
  • 888
  • 1
  • 8
  • 22
-1
votes
1 answer

Dismiss presented view controller, after the presenting view controller has been released

I am working on some old code that I didn't write, and it's really not architected well... The situation is that a view controller presents a custom view controller modally, however every 30 seconds the presenting view controller is recreated. The…
-1
votes
1 answer

Basic: ViewController Hierachy

In the first view controller A I call the "presentModalViewController" and then the B view controller is added to the screen now. The question is, is it true that the "A" view controller is still in the memory? Which means, will the viewDidLoad…
-1
votes
1 answer

DismissViewControllerAnimated not working with navigation

In my application i have used the following code to implement after dismissing the view i have pushed to new view,When i tried to implement the view is not dismissing instead it overlapping.Here my code, -(IBAction)selectExitingPicture …
-1
votes
1 answer

UIButton not working in second time (objective-C)

I have a button in my first screen for loading a small game here is the code: - (IBAction)playButtonPressed:(id)sender { [self startGameWithConfig:[RootViewController singleplayerGameConfig]]; NSLog(@"play again"); } and inside of my…
user1997934
-1
votes
1 answer

Presenting Modal view controller navigation z Position Problems

i have create Navigation bar on rootview Controller - (void)viewWillAppear:(BOOL)animated { ///set hud [UIApplication sharedApplication].networkActivityIndicatorVisible=YES; [[UIApplication…
-1
votes
1 answer

presentModalViewController for UIView

My class is a subclass of an UIView because I want to draw somthing. Is it possible to use a ModalViewController in this Context? I tried this: DrawViewController *dc = [[DrawViewController alloc]init]; [dc…
DeFlo
  • 141
  • 1
  • 1
  • 9
-2
votes
1 answer

In Objective C, while presenting a ViewController how to change the color of NavigationBar?

I am able to change tho color of NavigationBar by giving BackgroundColor but than I am not able change the color of StatusBar. Please provide a solution.
Champz
  • 11
  • 3
-3
votes
1 answer

How to present modal view controller with transparent background

I working with swift and how to how to present modal view controller but his background to be transparent. Content of other view controller to be visible in back.
Nik
  • 1,517
  • 5
  • 14
  • 19
-4
votes
1 answer

Check if view controller is presented modally or pushed, ( using swift), but i dont know what for?

This code i got from my friend. But i don't know how it work. I hope some one in here can help me to explain this code. Because i have to explain it to my teacher. private func isModal() -> Bool { if self.presentingViewController != nil { …
Dodi
  • 141
  • 2
  • 13
1 2 3
37
38