Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grouped Table View - rounded Cells?

I would like to create rounded cells for my UITableView. But not for each cell, only the first and the last row (as shown in my screen)

enter image description here

The first is not a problem, i am only using:

tableView.layer.cornerRadius = 10

But what is with the last one? Any ideas how to solve that? Thanks in advance.

like image 334
derdida Avatar asked Sep 29 '22 16:09

derdida


1 Answers

You use this code aftertableView.layer.cornerRadius = 10

tableView.layer.masksToBounds = true

I hope I have answered your question.

like image 133
Ujjwal-Nadhani Avatar answered Oct 11 '22 06:10

Ujjwal-Nadhani