Brad
Brad

Reputation: 705

How do I hide the UITableViewCell border for a custom cell in a group tableview?

What I am trying to do: I want three buttons side-by-side in a tableviewcell just like in Contacts app.

What I've done: I have a custom tableviewcell with three uibuttons in it. I've set the background color of the tableviewcell to be transparent.

What I can't figure out: The tableviewcell border is still there! Everything looks great except for the border floating around the 3 buttons.

Am I doing this completely wrong? Or is there a simple way to remove/hide the border?

Thanks!!!

Upvotes: 2

Views: 1744

Answers (2)

Thomas Decaux
Thomas Decaux

Reputation: 22711

What about if I want my transparent cell in the middle?

Upvotes: 2

Reed Olsen
Reed Olsen

Reputation: 9169

Don't put these in a cell. Simply create a custom UIView that contains the three buttons, and use that view as your Table's footer:

[myTableView setTableFooterView:customUIViewWithButtons];

Good luck!

Upvotes: 3

Related Questions