开发者

Glossy button (similar to UISegmentedControl) in UITableViewCell

I have a grouped UITableView with a row per section. I would like the same effect as the UISegmentedControl button (glossy/3D-ish/Modern look). 开发者_运维问答What's the best way to do this without tearing down my UITableView methods code?

Thanks


You don't need to tear down the tableView methods code... Just have to customize your tableViewCells. Here you can seen how it should be done. You'll need a glossy background Image or draw it yourself in code dynamically (not recommended)


You can customize UIButton and use it in your cells, or you can directly customize cell background view and text label to make it look like a button. For customizing the background of the cell: Setting background image of custom table view cells

You may also consider using a simple, ready-to-use custom button component. It also provides a custom cell that you can easily use in your tableviews.

Looks like:

Glossy button (similar to UISegmentedControl) in UITableViewCell

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜