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"]];  //  字典型

posted @ 2014-04-22 09:36  晨星、风  阅读(157)  评论(0编辑  收藏  举报