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

App crashing on runTransitionForCurrentState but no clue as to why

I've tried searching for this, but no luck, so hoping there are some guru's who may know the answer. I'm seeing loads of reports in iTunes Connect of my app crashing with a particular stack trace, but the stack trace reveals nothing useful. #0.…
8
votes
2 answers

Losing reference to transitioningDelegate before presetentation presentation

I had a working custom UIPresentationController prior to Xcode beta 2 and iOS 10 beta 2. I haven't changed any code, but the presentation is now being presented with the standard modal presentation. There is a note in the Apple sample code for…
jjatie
  • 5,152
  • 5
  • 34
  • 56
8
votes
2 answers

UIPresentationController -- can I update the presented view controller's frame after presentation?

I'm using a custom UIPresentationController subclass to manage the presentation of a UIViewController. I'm overriding - (CGRect)frameOfPresentedViewInContainerView to provide a frame that is inset from the bounds of the containerView. Now, after…
Sean Danzeiser
  • 9,141
  • 12
  • 52
  • 90
8
votes
1 answer

Presenting a view controller without changing the status bar color, like UIAlertController

When performing some network operations, I present a modal view controller (similar to MBProgressHUD but as a view controller) to prevent user interaction and indicate progress. The view controller has modalPresentationStyle = .Custom and is…
7
votes
1 answer

Presenting Controller Is Nill in Transitioning Delegate

I am currently trying to present a view controller using a UIPresentationController. My issue is, when my custom transitioning delegate calls func presentationControllerForPresentedViewController(presented: UIViewController,…
7
votes
1 answer

iOS 8: Applying a UIVisualEffectView with Blur Effect to a Modal PopOver in Compact Mode

I am trying to make a popover like the one in session 214 of 2014's WWDC. So I started building my app using the IB having two views connected by a "Present As Popover" segue, as such: The popover view contains a text view that fills its superview,…
6
votes
5 answers

iOS - Dismiss presented view controller touching outside its View

I have a CustomPresentationController which animates in and out with custom animations; This specific controller gets presented, more less at 50% of the screen size, and when I present it, I add a shadow-gray view to the presentingViewController so…
6
votes
1 answer

UIPresentationController changes size when another view controller is displayed on top of it

I am presenting a modal view controller using UIPresentationController. I am setting the frame of presentedView less than the containView's bounds using following method: override func frameOfPresentedViewInContainerView() -> CGRect { let myDX =…
6
votes
2 answers

Navigation Bar jumping when presenting view controller via UIPresentationController subclass

I'm building an iOS 8 app and using UIPresentationController to present a view controller in a custom way. (see my previous question about this here: Replicating the style of the iOS Mail App's Compose Function). The issue I'm having is that when I…
5
votes
1 answer

Custom view controller presentation without animation

I have some custom modal presentation and custom controller to present (subclass of UIViewController). It is it's own transitioning delegate and returns some animated transitioning object and presentation controller. I use animated transitioning…
5
votes
3 answers

UIPresentationController preferredContentSize update animated

So I have a very basic UIPresentationController that basically display contentView centered on screen, it's size is determined by view controller preferredContentSize. (Its very much similar to regular modal view controller presented as FormSheet).…
DamianD
  • 101
  • 1
  • 4
4
votes
3 answers

Swift Presenting Controller Dismiss Bar Indicator

This should be an easy question for most of you. Presenting view controllers like in the attached photo now have a bar at the top of them (see red arrow) to indicate that the user can swipe down to dismiss the controller. Please help with any of the…
4
votes
4 answers

UIPresentationController crash just points to AppDelegate

Screenshots : I am getting a lot of these crashes but the problem is I'm just being pointed to my appDelegate first line. I've no idea where to look for the issue. Any ideas where I could start to investigate from the following crash…
user2363025
  • 6,365
  • 19
  • 48
  • 89
4
votes
1 answer

Using a custom UIPresentationController with horizontally compact UITraitCollection, but a popover otherwise

I have a view controller that I'm presenting in a universal iOS application. On the iPhone, it displays using a custom UIPresentationController which adjusts the frame of the presented view using UIPresentationController's…
ndg
  • 2,585
  • 2
  • 33
  • 58
4
votes
3 answers

How to dismiss a UIPresentationController by tapping its dimming view

I am using a UIPresentationController to show a custom modal. the presentation controller has a UIView dimming view animated in an out when it is being shown. The modal itself is a UIViewController added to the presentation controller's container.…
Bernd
  • 11,133
  • 11
  • 65
  • 98