IOS 7中的tableView分隔符布局问题 [英] tableView separator layout issue in IOS 7

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

问题描述

当你可以看出,上面的分隔符布局不正确。 tableView 位于 MoreTabController

As you can see, the layout of the separators above are not correct. The tableView is in the MoreTabController.

我发现解决方案如如何在iOS 7上修复UITableView分隔符?这个有没有办法让iOS 7中的UITableView单元格在分隔符中没有换行符?

I found the solutions as How to fix UITableView separator on iOS 7? and this Is there a way to make UITableView cells in iOS 7 not have a line break in the separator?

但我是我的应用程序针对SDK 6.0而不是SDK 7.0进行编译,因为如果针对SDK 7.0进行编译,我的应用无法运行。函数 setSeparatorInset 仅在SDK 7.0之后存在,我能解决这个问题吗?

But I am compiling my app against SDK 6.0 but not SDK 7.0 as my app cannot run if compiling against SDK 7.0. The function setSeparatorInset only exist after SDK 7.0, any other way I can solve this?

推荐答案

//在ios 7中我们可以在UITableView双向设置separatorInset

// in ios 7 We can set separatorInset in UITableView Two Way

1)用实际设置

table.separatorInset=UIEdgeInsetsZero;

2)或者你可以这样做

2) Or u can do this way

这篇关于IOS 7中的tableView分隔符布局问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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