NSBundle UIScreen
来源:互联网 发布:mac吃土色口红推荐 编辑:程序博客网 时间:2024/06/06 08:26
m
1:获取程序包内部的根目录
- NSLog(@"bundlePath:%@",[[NSBundle mainBundle] bundlePath]);
2:获取某App的系统配置文件的所有值存入 NSDictionary 键值对中
- NSDictionary *dicAppInfo = [[NSBundle mainBundle] infoDictionary];
------------------------------------------------------------------------------NSBundle------------------------------------------------------------------------------
------------------------------------------------------------------------------UIScreen------------------------------------------------------------------------------
1:整个屏幕的大小 {{0, 0}, {320, 480}}
- CGRect bounds = [UIScreen mainScreen].bounds;
- NSLog(@"UIScreen bounds: %@", NSStringFromCGRect(bounds));
2:应用程序窗口大小 {{0, 20}, {320, 460}}
- CGRect applicationFrame = [UIScreen mainScreen].applicationFrame;
- NSLog(@"UIScreen applicationFrame: %@", NSStringFromCGRect(applicationFrame));
0 0
- NSBundle UIScreen
- NSBundle UIScreen
- UIScreen
- UIScreen
- UIScreen
- nsbundle
- nsbundle
- NSBundle
- NSBundle
- nsbundle
- NSBundle
- NSBundle
- NSBundle
- NSBundle
- NSBundle
- NSBundle
- NSBundle
- NSBundle
- MyEclipse8.6 安装 svn 插件
- 首席工程师揭秘:LinkedIn大数据后台是如何运作的
- 杭电 HDU ACM 1976 Software Version
- OC ARC机制
- linux 如何显示一个文件的某几行(中间几行)
- NSBundle UIScreen
- 事务和事务的隔离
- NSURL
- 数据库原理课本中模糊匹配 like 下划线匹配多字符问题
- NSObject
- const/typedef/函数指针/回调函数
- J2EE常见问题集锦
- 使用Gson解析json数据
- 编写高性能HTML网页应用