UITableView 分隔线 [英] UITableView Separator line

查看:35
本文介绍了UITableView 分隔线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改出现在 UITableView 中每个单元格末尾的分隔线?我想要一个图像是细分隔符类型的线图像.

How can I change the separator line that appears at the end of each cell in UITableView? I want to have an image that is a thin separator type line image.

推荐答案

将tableview的separatorStyle设置为UITableViewCellSeparatorStyleNone.将分隔符图像作为子视图添加到每个单元格并正确设置框架.

Set the separatorStyle of the tableview to UITableViewCellSeparatorStyleNone. Add your separator image as subview to each cell and set the frame properly.

这篇关于UITableView 分隔线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆