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