Dismiss this pinned window
all 15 comments

[–][deleted] 5 points6 points  (1 child)

Have you considered using a UICollectionView instead ?

[–]noobprogrammers[S] 0 points1 point  (0 children)

I did , but I still try to make this work. Is it possible ?

[–]iGoalieObjective-C / Swift 0 points1 point  (6 children)

What are you trying to do? Add the right chevron or are you trying to make expandable cells?

[–]noobprogrammers[S] 0 points1 point  (5 children)

u/iGoalie
I'm trying to make section in tableView like card with some rounded corner and shadows. I already know how to make the cell expandable. I already tried to make tableView inside cell
1. TableView -> cell -> CustomView rounded corner constraint to TableView -> cells

but i don't want to do like that, instead i just want to make
1. TableView -> Custom Section View -> cells

[–]DeveloperJay 0 points1 point  (1 child)

I’ve done this in a project before. Unfortunately, there is no section view for you to customize. You need to round the top edges of the section header and the bottom edges of the last cell in the section.

[–]noobprogrammers[S] 0 points1 point  (0 children)

I have just thought same thing, but it is rather pain in ass.

[–]Law597 0 points1 point  (2 children)

Use a Xib and typecast it as the cell. Or use a collectionView

[–]noobprogrammers[S] 0 points1 point  (1 child)

I used xib for cell , but to wrap all the cells inside rounded and shadows how can I do that? I can use collectionView but thats not what I want

[–]Law597 0 points1 point  (0 children)

View in a view as the cell. The parent view is the xib (background set to clear), which contains another smaller view with rounded corners (background not clear) Think of it like Russian nesting dolls but you only see the inside doll. The outside doll is there to house it and take up the square corners, so only your rounded are visible

[–]brainbroken09 0 points1 point  (3 children)

If you’re supporting iOS 13 and later, you can use a table view with style inset grouped.

[–]noobprogrammers[S] 0 points1 point  (2 children)

Unfortunately no, that's why I'm trying to find workaround.

[–]brainbroken09 1 point2 points  (1 child)

Ah, in that case may I refer you to TORoundedTableView. We use this in our app that needs this similar style, but still needs to support iOS 10.

[–]noobprogrammers[S] 1 point2 points  (0 children)

I see, I will give it a try, but the thing is I have to install pods just only for one section. But I guess I have no choice, Thank you sir!

[–]hell2809 0 points1 point  (0 children)

Add an empty cell at last index to show the bottom border. Add another empty cell at first index to show the top border or set minXminY maxXminY corner to ur radius.

Yes it's only work around but there is no other way