Questions tagged [uimodalpresentationstyle]

157 questions
1
vote
0 answers

Can't find UIModalPresentationStyle enum value blurOverFullScreen

I am now developing a modal view presented on UINavigationController. I tried to blur the content of UINavigationController's rootViewController under the modal view. So I set up modalPresentationStyle value as .overFullScreen or…
vcvcvcvc
  • 137
  • 4
  • 10
1
vote
1 answer

modalPresentationStyle .overCurrentContext in custom animation of a containerView returns to black screen

I have a tableViewController in a containerView of another viewController. When an image is tapped, a custom transition occurs to another viewController to view the image. The transition works well. When the custom transition takes place though…
alionthego
  • 8,508
  • 9
  • 52
  • 125
1
vote
1 answer

remove black background when switching tab of `UITabBarController`

I have UITabBarController having 4 tabs. inside the first tab's ViewController i presented Popup using popUpVC.modalPresentationStyle = .overCurrentContext so i got this(thats perfect as i want): but now when i switch to secondTab Dollor_Icon,…
Uday Babariya
  • 1,031
  • 1
  • 13
  • 31
1
vote
0 answers

Can you use UIPresentationController for custom presentation/animation styles?

I always try to keep my code up to date by using all the advancement and best practices in the API but this time it seams I’m hitting a wall. I’d like to upgrade some of my code from using View Controller Containment to Presentation Controllers. The…
1
vote
1 answer

Why UIModalPresentationPageSheet not working ... its always fullscreen

Here is the code snippet for presenting view controllers as Form sheet.Its not working It always comes as full screen UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UIViewController *vc = [sb…
1
vote
3 answers

Presenting view controller with overCurrentContext then pushing to navigation stack results in navigation bar underlapping

I'm hitting my head against the wall with a navBar issue. See this sample project for a better idea of what I'm trying to achieve. Basically, my app structure is like this: NavController -root-> ViewControllerA -> button -> push -> ViewControllerB…
1
vote
0 answers

Crash after presenting View Controller modal on iPhone

I´m trying to implement a Popover for iPad and iPhone. Before iOS 9, there were different ViewController for iPad and iPhone. With iOS9 there should be a possibility to do this with a normal ViewController and different PresentationStyles?…
kimbl
  • 265
  • 1
  • 2
  • 12
1
vote
1 answer

Dismissing parent view controller of double modally presented view controller

I have the current setup where -> is a modal presentation (presentViewController()): ViewController A -> NavigationController B: ViewController C ViewController D -> ViewController E I am currently inside ViewController E. I would like to…
1
vote
0 answers

Remove background to see underlying view controller when using popover

If you would like to present a view controller modally yet continue to see the underlying view controller, you can change the UIModalPresentationStyle to Over Full Screen, then set the view's backgroundColor to clearColor, or a color with a lowered…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
1
vote
0 answers

How to add an overlay behind a modal view using UIModalPresentationCustom

I was UIModalPresentationPageSheet to present a modal in my application. I needed a bit more customization, so I moved over to using UIModalPresentationCustom. This style is very bare bones as to be expected, but what I'm wondering is if there is an…
1
vote
0 answers

UIModalPresentationCustom style changes view width on rotation

I have a modal I am presenting using UIModalPresentationCustom. I have the "to" view controller's view frame set to 300 pixels wide in the animateTransition method. When I present the modal, the width is fine, but when I rotate the screen, the width…
Brandon
  • 2,886
  • 3
  • 29
  • 44
1
vote
1 answer

How to redraw my view in SWIFT?

On my iPad app, I have a UIViewController with a button that open a modalView. @IBAction func showPostCommentViewController(sender: AnyObject){ let modalView = UIStoryboard(name: "Main", bundle:…
cmii
  • 3,556
  • 8
  • 38
  • 69
1
vote
2 answers

How can I tell programmatically if a ViewController presented UIModalPresentationFormSheet opened on full screen or not?

Modally presenting a ViewController on iPhone 6+ with a style of UIModalPresentationFormSheet opens differently according to orientation. In portrait mode it seem like regular Modal (same as smaller iPhones). But in landscape mode it opens as form…
AShavit
  • 416
  • 3
  • 10
1
vote
0 answers

ViewControllerInteractiveTransitioning Bug

I am presenting a viewController with modalPresentationStyle set to UIModalPresentationCustom and with my custom transitioningDelegate. I successfully tested a non-interactive transition at first, then I wanted to go deeper and add an…
Liv
  • 21
  • 2
1
vote
2 answers

PresentModalViewController overlaps the navigation bar and status bar iOS 7

I resolved the navigation bar status bar issue in all my views, but when I use presentModalViewController to show another view, navigation bar and status bar overlaps again.I am using this for presenting new view: [self.parentViewController…
taman
  • 21
  • 4