开发者

What UI Element is This?

Does anyone know if this is some sort of a styled UISegmentedControl from the Billings app?

control http://img2.pict.com/30/ec/9e/2658558/0/screenshot20100127at9.png

If so, how do you customize the UISegmentedControl given tha开发者_运维问答t there are only Plain, Bordered, and Bar styles???

Thanks!


You really can't style UISegmentedControl, it's more likely to be a view with two custom buttons wired to affect each other.


This effect can be achieved using a UISegmentedControl. While the plain style does have rounded borders, they can be spilled off the edges of the screen. Once that is done all you need are two images per segment - one for selected state and one for unselected state.

You can then respond to a valueChanged: event, Based on the -selectedSegmentIndex, you can set the images of the segments (as needed) using the -setImage:forSegmentAtIndex: method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜