开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜