根据全局变量判断设备是不是iphone5

时间:2016-04-09 10:10:32
【文件属性】:
文件名称:根据全局变量判断设备是不是iphone5
文件大小:64KB
文件格式:ZIP
更新时间:2016-04-09 10:10:32
iphone型号 由于iphone5尺寸的变化,在有时候界面布局的时候需要知道什么设备,所以自己做了个demo,在程序中设定一个全局变量,在进入程序的时候进行赋值,然后根据值的结果判断在程序中的什么时候使用什么布局。
【文件预览】:
test1
----.DS_Store(6KB)
----test1()
--------PMSAppDelegate.m(3KB)
--------PMSAppDelegate.h(393B)
--------en.lproj()
--------test1-Info.plist(1KB)
--------main.m(343B)
--------PMSViewController.m(706B)
--------test1-Prefix.pch(329B)
--------Default-568h@2x.png(18KB)
--------Default.png(6KB)
--------PMSViewController.h(247B)
--------Default@2x.png(16KB)
----.git()
--------logs()
--------info()
--------index(1KB)
--------COMMIT_EDITMSG(15B)
--------objects()
--------HEAD(23B)
--------config(111B)
--------refs()
--------branches()
--------hooks()
--------description(73B)
----test1.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(13KB)

网友评论