How to force a screen orientation in specific view controllers?

前端 未结 4 740
猫巷女王i
猫巷女王i 2020-12-16 14:06

My application is pretty simple: it starts up with a view controller that holds a table view (in grouped view layout) with a few options. When the user taps on one of the op

4条回答
  •  情歌与酒
    2020-12-16 14:22

    There does not appear to be a way to do this using the documented methods.

    I have filed a bug for this: rdar://6399924

    "There is no way to always restrict a UIViewController to one orientation"

    You can see it on open radar (along with a link to sample code to reproduce the problem) here: http://openradar.appspot.com/radar?id=697

提交回复
热议问题