2017年2月23日

IOS 弹框AlterView的使用(IOS8.0以前使用)UIAlertController(IOS9.0使用)

摘要: IOS 9.0以上用UIAlertController 代替UIAlertView(实例转载) - (void)viewDidLoad { [super viewDidLoad]; // 创建一个BUTTON 点击显示弹框 UIButton *button = [UIButton buttonWit 阅读全文

posted @ 2017-02-23 20:24 守望星空 阅读(1243) 评论(0) 推荐(0) 编辑

IOS tableView的性能优化(缓存池)

摘要: 使用缓存池(标识类型) 1.通过 一个 标识 去 缓存池 中寻找可循环得用的cell 2.如果缓存池找不到可循环得用的cell:创建一个新的cell(给cell贴个标识) 3.给cell设置新的数据 本地数据性能优化(实例) 阅读全文

posted @ 2017-02-23 15:24 守望星空 阅读(358) 评论(0) 推荐(0) 编辑

IOS 设置颜色的的详情

摘要: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // 32bit颜色 : ARGB // Alpha : 8 // Red : 8 // Green... 阅读全文

posted @ 2017-02-23 14:20 守望星空 阅读(136) 评论(0) 推荐(0) 编辑

IOS TableView代理设置 table的行高

摘要: // 设置行高(每一行的高度一致) self.tableView.rowHeight = 60; self.tableView.delegate = self; #pragma mark - 代理方法 /** * 每一行的高度不一致的时候使用这个方法来设置行高 */ - (CGFloat)tableView:(UITableVi... 阅读全文

posted @ 2017-02-23 11:40 守望星空 阅读(844) 评论(0) 推荐(0) 编辑

IOS tableView的基本使用

摘要: tableView Style:Plain(头部标题 向上移 不会消失) tableView Style:Grouped(头部标题 向上移 会 消失) 阅读全文

posted @ 2017-02-23 09:59 守望星空 阅读(255) 评论(0) 推荐(0) 编辑

导航