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

后端 未结 5 2184
不思量自难忘°
不思量自难忘° 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:34

    You have to #import the QuartzCore framework and add the transition animation, then change:

    animated:YES to: animated:NO.

提交回复
热议问题