I am learning how to use storyboard and i am trying to build a UITableViewCell with grouped style. I tried to put a png file and set it as background for the cell. My png file is a rectangular image. When i open it in simulator, I found the first cell corner become a rectangle rather than a round corner cell. What should i can in order to make the first and last cell to be corner rounded?
Asked
Active
Viewed 1,110 times
2 Answers
1
This is a know problem when using Grouped TableView.
You can either use the backgroundColor
of UITableViewCell
or you will have to draw the background by hand and check wether is the first of last in the section and add the rounded corners.
have a look at this post
-
You could also use a CAShapeLayer as a mask. – Richard J. Ross III Feb 27 '12 at 23:07