开发者

What UI Element is This?

开发者 https://www.devze.com 2022-12-18 10:21 出处:网络
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

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

精彩评论

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