alessioarsuffi
alessioarsuffi

Reputation: 561

Custom UITableViewCell rounded corners, padding, bgImage

I would like to have an effect like this image:

example

any suggestion ? i'm not able to add space between cell, i'm able to add radius to 4 corners but the bg color exit from the borders showing a rect...

any suggestion ?

should i subclass something?

thanks

Upvotes: 1

Views: 392

Answers (1)

matt
matt

Reputation: 535149

Make the table view background a clear-color view. Make the cell background view an image view containing an image, smaller than the cell and centered, showing the round-rect shape (which can be constructed in code).

I do that here (but my table background is not clear, and the image is not much smaller than the cell):

enter image description here

Upvotes: 1

Related Questions