简体   繁体   中英

UITableView with grey lines on the side when trying to add a background. How do you get rid of these lines?

You can see the lines on the side of the table http://img267.imageshack.us/img267/7098/screenshot20100808at543.png

How do you get rid of these lines on the side of the table?

The problem is not in the lines.
The problem is in the labels' background color.
Just set the background color (.backgroundColor property) of the label (the one that contains the text "Item 1", "Item 2" etc.) to [UIColor clearColor] inside the cellForRowAtIndexPath method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM