Questions tagged uipresentationcontroller

Explore the latest questions and answers asked by our top developers.

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 experience for "Top Stories" on the Apple iOS 13 stocks […]

transitionCoordinator return nil for custom container view controller in iOS8

when reference transitionCoordinator on child vc, it used to called transitionCoordinator on custom container class in iOS7, but in iOS8 this wasn’t the case. Now it return nil and I have no clue what should I change to make this work. I guess its about UIPresentationController introduced in iOS8, but can’t find proper implementation for […]

Why UIPresentationController’s height is changed when present another controller?

I use UIPresentationController to show bottom tip. Sometimes the presentationController may present another controller. And When the presented controller is dismissed, the presentationController’s height was changed. So why does it changed and how can i solve this problem. The code likes below: class ViewController: UIViewController { let presentVC = UIViewController() override func viewDidLoad() { super.viewDidLoad() […]

By dowZhang
Categorised as ios, swift, uipresentationcontroller

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us