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));