0

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?

Clarence
  • 1,951
  • 2
  • 34
  • 49

2 Answers2

1

Try to set the property clippingSubviews of your cells to YES.

Zoleas
  • 4,869
  • 1
  • 21
  • 33
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

Community
  • 1
  • 1
rckoenes
  • 69,092
  • 8
  • 134
  • 166