开发者

UITableViewGrouped Section ~ Weird White Line below the TableView (WITH IMAGES)

开发者 https://www.devze.com 2023-03-29 05:59 出处:网络
Please refer to the image. If I use [self.tableView initWithFrame:CGRectMake(0, 0, 320, 320) style:UITableViewStyleGrouped];

Please refer to the image.

If I use

    [self.tableView initWithFrame:CGRectMake(0, 0, 320, 320) 
               style:UITableViewStyleGrouped];

There is this small WHITE Line below the tableView Section. I thought is was a bug in the app, but it turns out that a lot of apps have this on them and s开发者_开发百科ome of them have this corrected.

How do I get rid of that white line ?

(The screen shot is an image of a section and I have set the background of UIView and tableView as green so that the line is clearly visible).

UITableViewGrouped Section ~ Weird White Line below the TableView (WITH IMAGES)


Try setting the tableView's separatorStyle property to UITableViewCellSeparatorStyleSingleLine. That looks a lot like what happens when UITableViewCellSeparatorStyleSingleLineEtched is set instead, perhaps in a nib.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号