摘要: [UIScreen mainScreen].applicationFrame与[UIScreen mainScreen].bounds区别:applicationFrame会自动判断是否存在状态栏,其值为{0,0},{320,480}或{0,20},{320,480}bounds不会自动判断,值永远为{0,0},{320,480} 阅读全文
posted @ 2014-06-11 12:01 М80メ 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - 版本检测- (void) checkVersion{ // 版本号的key NSString *key = (NSString *)kCFBundleVersionKey; // 从info.plist取版本号 NSString *version = [NSBundle mainBundle].infoDictionary[key... 阅读全文
posted @ 2014-06-11 11:10 М80メ 阅读(141) 评论(0) 推荐(0) 编辑
摘要: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {// 列寬CGFloat contentWidth = self.tableView.frame.size.width;// 用何種字體進行顯示UIFont *font = [... 阅读全文
posted @ 2014-06-11 10:13 М80メ 阅读(342) 评论(0) 推荐(0) 编辑
摘要: - (float)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ NSString *str = [_dataArray objectAtIndex:indexPath.row]; UIFont *tfont = [UIFont systemFontOfSize:... 阅读全文
posted @ 2014-06-11 09:54 М80メ 阅读(249) 评论(0) 推荐(0) 编辑