摘要:
UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法 (实例)博客分类:IOS / Objective-CUIDeviceOrientation 是机器硬件的当前旋转方向 这个你只能取值 不能设置UIInterfaceOrientation 是你程序界面的当前旋转方向 这个可以设置判断设备现在的方向:C代码 -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{//宣告一個UIDevice指標,並取得目前D... 阅读全文
posted @ 2012-07-04 10:49
松花江以南
阅读(8918)
评论(1)
推荐(2)

浙公网安备 33010602011771号