How do you present a UIViewController from the top of the screen instead of the bottom?

后端 未结 5 2154
不思量自难忘°
不思量自难忘° 2021-01-03 13:10

I am using a UIViewController and I use presentModalViewController:controllerr animated:YES to present it but I would like if it would slide down from the top of the screen

5条回答
  •  孤城傲影
    2021-01-03 13:12

    What you're describing isn't a built-in transition style; see here for a list of those that Apple provides. If you absolutely need your view controller to appear this way, you'll have to animate it yourself.

提交回复
热议问题