Search code examples
objective-cuitableviewcell

Width UITableViewCell


I have an UITableViewController. My cell instead of this:

The line separated the cells reaches the edge

But I want that the cell is like this:

The line does not reach the final

In the second image, the line does not reach the edge of the screen and below the photo line does not appear.

How can I do this?

Thank you!!


Solution

  • You can use the cell template provided by default. For example

    UITablebiewCellStyleSubtitle
    

    Set its properties and it should work.

    The other option would be to create a custom cell