开发者

how to create a cell view which has a button and a "shorter cell" like contacts app?

开发者 https://www.devze.com 2022-12-17 20:34 出处:网络
I haved tried to create a view with a UIButton and a tableView Cell, then I set the header view to be this view.

I haved tried to create a view with a UIButton and a tableView Cell, then I set the header view to be this view. However,the cell in the header is not rounded-rect, besides,how to handle the cell's event,when user click this cell.

I haved tried to use custom cell also, but how to create a button and a shorter cell in a row? when you select the cell,will not affe开发者_运维问答ct the button state?

thanks.


You can fake this in a number of ways. The simplest is to layout a rounded rectangle UIButton in your header, and turn off userInteraction for it so that it's just decorative.

0

精彩评论

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

关注公众号