use*_*136 12 iphone objective-c uitableview ios ios7
我在UITableViewController中重现视觉故障时遇到了麻烦.实际上是SensibleTableView组件的SCTableViewController.
所以我在-viewDidLoad中构建一个静态分组的TableView:
- (void)viewDidLoad
{
[super viewDidLoad];
SCTableViewSection *sec = [SCTableViewSection sectionWithHeaderTitle:@"hdas"];
SCLabelCell *c1 = [SCLabelCell cellWithText:@"dsan"];
[sec addCell:c1];
[[self tableViewModel] addSection:sec];
}
Run Code Online (Sandbox Code Playgroud)
而我所看到的是标签右边缘的一个奇怪的薄灰色边框.(标有红色三角形)
在哪里可以删除此栏?为什么会出现?
我尝试设置backgroundColor,图层边框,图层阴影,textShadow等.

小智 6
使用UILabel.backgroundColor,设置label的backgroundColor引发这个问题.你可以通过UILabel.layer.backgroundColor设置Layer的backgroundColor来修复这个bug.
"为我设置明确的背景颜色." 通过Nuthinking.也可以解决这个问题.但是在tableView中这可能会降低性能.
| 归档时间: |
|
| 查看次数: |
944 次 |
| 最近记录: |