Questions tagged [uipresentationcontroller]

Introduced in iOS 8, UIPresentationControllers allow you to control the "chrome" during a custom view controller transition.

Introduced in iOS 8, UIPresentationControllers allow you to control the "chrome" during a custom view controller transition.

95 questions
2
votes
0 answers

UIPresentationController In-call status bar issue

I have a screen where I need to present a UIViewController with custom animation, so I'm using UIPresentationController for a custom presentation. Everything works fine until the user gets a call, the In-call status bar shifts the UITranstionView by…
Arun_
  • 1,806
  • 2
  • 20
  • 40
2
votes
1 answer

Trying to mimic the Mail.app compose animation keeping a layer in view

I have been trying for a while but I cannot figure out how to create a Compose animation seen in the iOS 10+ when you can drag the new composed email down, then it stays on the bottom and the rest of the app is normally accessed, then when you tap…
Ivan Cantarino
  • 3,058
  • 4
  • 34
  • 73
2
votes
2 answers

Can a UIViewController that is presented as a popover be its own popoverPresentationController delegate?

In the project shown below there is an InitialViewController that has a single button labeled "Show Popover". When that button is tapped the app is supposed to present the second view controller (PopoverViewController) as a popover. The second view…
2
votes
0 answers

What is required for a UIViewController to act as the presentingViewController in a custom modal presentation?

Apple's view controller programming guide states (emphasis added): The view controller that calls the presentViewController:animated:completion: method may not be the one that actually performs the modal presentation. The presentation style…
Ryan Ballantyne
  • 4,064
  • 3
  • 26
  • 27
2
votes
1 answer

Dismissing a Popover created by a segue on iOS 9

There are a lot of questions and answers on Stack Overflow about this but they are just valid for iOS 8 and before. iOS 9 deprecated a lot of things and the answers on SO did not work anymore. Said that, I am presenting a popover by performing a…
Duck
  • 34,902
  • 47
  • 248
  • 470
2
votes
1 answer

Retain original status bar appearance when using custom presentation controller

I present a navigation controller from controller contained in navigation controller using custom UIPresentationController. My problem is that I cannot retain original status bar appearance. I don't want to give control over status bar to newly…
pronebird
  • 12,068
  • 5
  • 54
  • 82
2
votes
1 answer

Adapting between two different UIPresentationController's

I would like to adapt between two different UIPresentationController, according to the current trait collection. For example, the two controllers could be UIPopoverPresentationController for any traits and a custom UIPresentationController for…
2
votes
1 answer

Can UIPopoverPresentationController be forced to reposition popover instead of resizing it?

I am using auto layout with Storyboard. I present a popoverPresentationController from a cell rect: NumberController * viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"NumberController"]; UIPopoverPresentationController…
2
votes
0 answers

issue in using uipresentationController for custom presentation

i am using UIPresentationController for custom modal presentation for menu this part is fine , let say i have clicked 'feedback' i am presenting another controller on top of it . the problem is after dismissing feedback controller the size of menu…
1
vote
1 answer

How to make dismissButton tappable when it is outside of the presentableView?

I created a custom UIPresentationController and want the top sixth of the screen to contain a dismissButton and dimmingView to fade in and out on present and dismiss, respectively. However, because the dismissButton is outside the presentedView, it…
helloworld12345
  • 176
  • 1
  • 4
  • 22
1
vote
1 answer

UIPresentationController multiple sizes or detents

I am working on trying to implement a presentation controller that essentially mimics the behavior of the UISheetPresentationController. I am doing this because I want to add a third detent and also I want this to work for iOS 14, so I cannot use…
1
vote
1 answer

UIPresentationController present navigation controller view

On iOS 14, when presenting a modal navigation controller, non full screen, with UIPresentationController and modalPresentationStyle custom, the navigation bar take account into the safe area top inset (even if prefersStatusBarHidden is true). So,…
Patrick Bodet
  • 641
  • 2
  • 8
  • 17
1
vote
1 answer

Drag to dismiss a UIPresentationController

I have made a UIPresentationController that fits any view controller and shows up on half of the screen using this tutorial. Now I would love to add drag to dismiss to this. I'm trying to have the drag feel natural and responsive like the drag…
1
vote
0 answers

UIViewController modalPresentationStyle popover for iPad and custom for iPhone

I created a custom presentation using UIPresentationController but I only want to use this presentation for horizontally compact layout, and I want to replace my custom presentation with a popover for horizontally regular layout, and when the…
1
vote
0 answers

drag up/down another UIViewController iOS

I need to present a child UIViewController over a parent controller 90% to the top, allowing you to see the parent behind. Also, user must be able to swipe down the presented controller to dismiss. The parent is in a different storyboard. Ive tried…