UIKit常用语句汇总
1:隐藏屏幕上方的状态栏
在APPDelegate中加下列语句:
self.window.windowLevel =UIWindowLevelStatusBar; // 屏蔽模拟器屏幕上方的状态栏
2:读取Plist文件数据:
NSBundle *bundle = [NSBundlemainBundle];
self.example = [NSArrayarrayWithContentsOfFile:[bundle pathForResource:@"example"ofType:@"plist"]]; // 数组型
self.example = [NSDictionarydictionaryWithContentsOfFile:[bundle pathForResource:@"exam"ofType:@"plist"]]; // 字典型