- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 设计一个进度条
自定义一个UIView的子类 //提供一个成员属性,接收下载进度值 @property (nonatomic, assign) CGFloat progress; 重写成员属性progress的setter //每次改变成员属性progress的值,就会调用它的setter - (void)setProgress:(CGFloat)progress { _progress = progr
2017-08-31 17:41:05 410
原创 UITableView的重用机制
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *indentifier =@"Cell"; UITableViewCell *cell = [tableViewdequeueReusableC
2017-08-31 16:42:27 196
原创 UITableViewCell AutoLayout 动态行高
UITableViewCell AutoLayout 动态行高(iOS 8.0+)最近有空整理记录一下在AutoLayout中如何使UITableViewCell的行高根据内容(以UILabel的多行显示为例)达到自适应高度。 如下图:cell 高度没有动态设置,label的文字没有显示全,1、首先在自定义的cell中,设置好所需要的约束。 2、保持默认状态:Row Height 是Defaul
2017-08-31 15:51:54 435
原创 UITableView的重用机制
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *indentifier = @"Cell"; UITableViewCell *cell = [tableView
2017-08-31 13:40:38 270
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人