Get current orientation of iPad?

后端 未结 11 1741
野趣味
野趣味 2020-12-02 07:28

In a given event handler (not the \"shouldAutorotateToInterfaceOrientation\" method) how do I detect the current iPad orientation? I have a text field I have to animate up

11条回答
  •  星月不相逢
    2020-12-02 08:12

    In your view controller, get the read-only value of self.interfaceOrientation (the current orientation of the interface).

提交回复
热议问题