删除分组UITableView中的角阴影/偏移 [英] Remove corner shadow/offset in grouped UITableView
问题描述
当UITableViewStyleGrouped类型的UITableView的背景视图是iPad上的非默认颜色或图案图像时,圆角有一条丑陋的额外线条,有点像斜角效果或投影:
When a UITableView of type UITableViewStyleGrouped has a background view that is a non-default color or pattern image on the iPad, the rounded corners have an ugly extra line, sort of like a bevel effect or drop shadow:
有没有人知道如何摆脱桌子底部的额外线?
Does anyone know of any way to get rid of the extra line at the bottom of the table?
推荐答案
iPad的默认分隔符样式为 UITableViewCellSeparatorStyleSingleLineEtched
。这与iPhone的默认值 UITableViewCellSeparatorStyleSingleLine
不同。
The default separator style for iPad is UITableViewCellSeparatorStyleSingleLineEtched
. This is different from the iPhone's default of UITableViewCellSeparatorStyleSingleLine
.
如果要删除斜角,请设置 separatorStyle
的视图为 UITableViewCellSeparatorStyleSingleLine
。
If you would like to remove the bevel, set the separatorStyle
of the view to UITableViewCellSeparatorStyleSingleLine
.
请注意iOS 5中两个设备的默认分隔符样式是SingleLineEtched。
Note that the default separator style in iOS 5 for both devices is SingleLineEtched.
这篇关于删除分组UITableView中的角阴影/偏移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!