UITableView Single Line Separator Style Does Not Work Properly

I have a grouped UITableView in my code, and I'm trying to use the Single Line Etched style, where it has a 1 pixel lower shadow. Instead, I get some kind of negative gray shadow on top when I turn it on. Neither the software nor the IB implementation give a shadow with 1 px. Here is a link to a screenshot of how it looks with a negative gray shadow:

http://imgur.com/8Ikj2

TL DR: I would like the Single Line Etched style to give me a 1px white shadow instead of the 1px gray inner shadow that now gives me the top.

Thanks!

+4
source share
2 answers

It was a while, but the problem here was the iPhone simulator itself. As soon as I launched the application on the iOS device itself, everything worked fine, and there was a white shadow. Regardless, thank you for your advice, Bratt, I'm sure it will come in handy in a different situation.

+4
source

I'm not sure if the grouped table considers the etching parameter, but a very quick job is to create an image that has the exact look you want and set the background image of the table cell to that image. Set the background image in the same way as the rest of the data for each cell. Finally, set the line style to "none" in IB.

+2
source

All Articles