UIView *line = [[UIViewalloc] init];
line.frame = CGRectMake(0, cell.frame.size.height, SCREEN_WIDTH, 1);
line.backgroundColor = TABLE_CELL_LINE_COLOR;
[cell.contentViewaddSubview:line];
UIImageView *arrowView=[[UIImageViewalloc] init];
arrowView.translatesAutoresizingMaskIntoConstraints=NO;
arrowView.image=[UIImageimageNamed:@"setting_arrow"];
[cell.contentViewaddSubview:arrowView];
[cell.contentViewaddConstraints:[NSLayoutConstraintconstraintsWithVisualFormat:@"V:[arrowView(15)]-15-|"options:0metrics:nilviews:NSDictionaryOfVariableBindings(arrowView)]];
[cell.contentViewaddConstraints:[NSLayoutConstraintconstraintsWithVisualFormat:@"H:[arrowView(10)]-20-|"options:0metrics:nilviews:NSDictionaryOfVariableBindings(arrowView)]];
相关推荐
用Swift语言实现了自定义tableViewCell。 包含了一个TableViewCell的基类以及自定义的tableViewCell类的实现和调用。
用Swift实现的简单自定义TableViewCell
swift简单的自定义tableViewCell实现
自定义符合要求饿到cell,让你的tableview更加适用
iOS 自定义UITableViewCell,iOS 自定义表视图 博客地址:http://blog.csdn.net/yang8456211
Swift5:实现默认及自定义TableViewCell;普通CollectionViewCell及瀑布流CollectionViewCell,TableViewCell自适应高度; ScrollView嵌套TableView,CollectionView; TableView分组标题悬浮吸顶; CollectionView...
用于tableViewCell 和 collectionViewCell 的移动 如发现问题请发邮件至ranheran@sohu.com,我会尽快修正
在XCode12中实现自定义TableViewCell微博事例,包含图片资源及plist数据
博客中的IOS TableView的Cell高度自适应,UILabel自动换行适应 的项目源码
tableviewcell的移动、删除、添加
iOS8新功能 TableViewCell滑动添加多个按钮,以后就不用自己计算位置了
左滑显示更多按钮,展示更多功能
tableViewCell按钮弹出视图
tableviewcell 输入内容实时刷新高度 自适应高度 有不足的地方请指教 分享一些互相学习
TableViewCell上的按钮的点击
ios TableViewCell收缩、伸缩、缩放功能
拖拽排序: 今日头条,网易新闻,订阅频道的拖拽排序功能简单实现。 支持标签长度不同。 [gitHub源码地址] (https://github.com/HelloYeah/DraggingSort)
TableVIew使用MMVC布局 ,cell点击展开高度自适应
tableViewCell性能优化 加载高清大图 UI界面滚动不卡顿 cell性能大大优化
UITableViewCell 动态高度计算 适用于ios8.0后 支持UITextView输入动态改变高度。