2016年4月22日

heightForRow

摘要: CGSize size = [cc.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize]; return size.height + 1.0f; 阅读全文

posted @ 2016-04-22 12:03 中微 阅读(158) 评论(0) 推荐(0)

AutoLayoutLabel

摘要: - (void)setBounds:(CGRect)bounds { [super setBounds:bounds]; if (bounds.size.width != self.preferredMaxLayoutWidth) { self.preferredMaxLayoutWidth = s 阅读全文

posted @ 2016-04-22 12:02 中微 阅读(140) 评论(0) 推荐(0)

2015年8月28日

tableView分割线的indexPath

摘要: 在写项目时候,tableView的分割线一般都会自定义,我采取的方法是为UITableView额外的添加一个叫1 - (BOOL)tableView:(UITableView *)tableView borderForRowAtIndexPath:(NSIndexPath *)indexPath;的... 阅读全文

posted @ 2015-08-28 16:20 中微 阅读(183) 评论(0) 推荐(0)

设置束

摘要: 1.在工程目录下新建文件,选择iOS下得Resource,选择settings Bundle,文件命名“Setting Bundle”2.我们主要是操作Root.plist,打开它,对其中每组进行设置(属性列表中的键只能是NSString类型,区分大小写)3.运行程序,模拟器弹出后,单击Home键返... 阅读全文

posted @ 2015-08-28 15:47 中微 阅读(135) 评论(0) 推荐(0)

导航