Uzair Dhada
Uzair Dhada

Reputation: 333

Present `UIViewController` in iPhone as we have in iPad

I want to present a UIViewController in iPhone and iPad both as same as we present in iPad using UIModalPresentationFormSheet but i also want to give good amount of curve on the edges like cornerRadius. I can do it using UIView and animate it from bottom to top but i want to do using UIViewController

Upvotes: 0

Views: 78

Answers (1)

Rafał Sroka
Rafał Sroka

Reputation: 40030

It is not possible using the built-in frameworks.

Docs:

In a horizontally compact environment, this option behaves the same as UIModalPresentationFullScreen.

You'll have to write custom code to show a view modally that doesn't fully obscure the underlying view.

Upvotes: 2

Related Questions