ScreenWidth [UIScreen mainScreen].bounds.size.width
2015-07-20 00:54
495 查看
ScreenWidth [UIScreen mainScreen].bounds.size.width
bounds就是屏幕的全部区域,applicationFrame就是app显示的区域,不包含状态栏
(高度20,如果状态栏隐藏的话,那么,这个结果就和bounds一样了)
self.view.frame.size.width
区别:
在layout中 设置
self.x = 2*padding;
self.width = screen width-2*padding;
bounds就是屏幕的全部区域,applicationFrame就是app显示的区域,不包含状态栏
(高度20,如果状态栏隐藏的话,那么,这个结果就和bounds一样了)
self.view.frame.size.width
区别:
在layout中 设置
self.x = 2*padding;
self.width = screen width-2*padding;
相关文章推荐
- UICollectionView:
- Implement Queue using Stacks
- Implement Stack using Queues
- UIView属性的动画
- codeforces 399B Red and Blue Balls-数据-(模拟题找规律)
- [Android UI界面] tab_Host页面跳转,传值,刷新等问题汇总。
- 解决The current branch is not configured for pull No value for key branch.master.merge found in config
- (C#)使用队列(Queue)解决简单的并发问题
- QueryPerformanceFrequency用法--Windows高精度定时计数
- Ques前端组件化体系
- POJ 1503 || HOJ 1435 Integer Inquiry
- swt 更新主UI线程
- winform进程间操作UI控件
- iOS开发——UI进阶篇(一)UITableView,索引条,汽车数据展示案例
- php中的register_shutdown_function和fastcgi_finish_request
- hdu 4740 The Donkey of Gui Zhou bfs
- 浅谈break 、continue、return,goto四种语句的区别。
- 浅谈break 、continue、return,goto四种语句的区别。
- 每天一个小知识点7( 4000 jQuer总结一)
- Ueditor实现自定义conttoller请求或跨域请求