![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS_设备信息
c349126799
这个作者很懒,什么都没留下…
展开
-
使程序同时支持iphone和ipad
在AppDelegate里,通过获取UIDevice的userInterfaceIdiom属性,可以检测到当前程序是运行在iphone或者是ipad上,分别加载相应的视图,就能在两种设备中正常的运行起来。 例子如下: UIDevice* device=[UIDevice currentDevice]; window = [[UIWindow alloc] ini转载 2014-08-12 15:56:47 · 581 阅读 · 0 评论 -
获取设备信息
1、UIDeviceOrientation是设备的方向,只能读取不能设置,支持6个方向原创 2014-08-12 15:31:32 · 955 阅读 · 0 评论