UITableViewCell分隔线不出现 [英] UITableViewCell separator lines not appearing

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

问题描述

我有一个tableView,其中的自定义tableViewCells高为42.由于某些原因,分隔线没有出现.它就像普通的tableView一样工作,即可以滚动和删除单元格,但分隔符行不存在.

I have a tableView with custom tableViewCells that are 42 high. For some reason the separator lines are not appearing. It acts as if it is a normal tableView i.e. i can scroll and delete cells, but the separator lines are just not there.

有人知道为什么吗?

谢谢

推荐答案

您需要像这样设置teble的SeparatorStyle:

You nees to set SeparatorStyle of the teble like:

mtable.separatorStyle= UITableViewCellSeparatorStyleSingleLine;

希望这对您有帮助.这对我有用.

Hope this will help u out.This has worked for me.

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

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