开发者

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

开发者 https://www.devze.com 2022-12-30 20:38 出处:网络
What I am trying to do: I want three buttons side-by-side in a tableviewcell just like in Contacts app.

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!!!


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!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消