适配的问题
2015-06-11 14:35
337 查看
WIDTH:
(([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.width : [[UIScreen mainScreen] bounds].size.height)
//// 屏幕高度
HEIGHT:
(([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.height : [[UIScreen mainScreen] bounds].size.width)
(([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.width : [[UIScreen mainScreen] bounds].size.height)
//// 屏幕高度
HEIGHT:
(([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.height : [[UIScreen mainScreen] bounds].size.width)
相关文章推荐
- 【bzoj_1005】[HNOI2008]明明的烦恼
- 页缓存算法(页面置换算法)
- LR逻辑回归
- ProE/Creo插件 MCADEx Tools 4.0 ForCreo
- Win7安装CAD软件安装不上每次安装都提示错误1327
- Context Switches上下文切换性能详解
- PostgreSQL使用
- js 获取前天、昨天、今天、明天、后天的时间
- 软件测试之单元测试:开发人员的测试
- SAT数学几何常见单词汇总
- d3实践-饼状图
- 利用exif js及脚本修正图片的orientation显示
- heartbeat之crm资源管理
- C# 让字符串定长换行
- 总结
- 请教MAC OS下PHP的mcrypt怎么安装
- iOS开发之总结
- unity, 欧拉角(euler angle)
- 屏幕分辨率值
- 环形队列