开发者

Cocoa Touch - Segmented Controls

开发者 https://www.devze.com 2023-01-06 16:16 出处:网络
How can I get whats been selected in a segmented 开发者_运维百科control?Use selectedSegmentIndex.

How can I get whats been selected in a segmented 开发者_运维百科control?


Use selectedSegmentIndex.

EDIT:
To retrieve the title of the segment, pass this NSInteger into titleForSegmentAtIndex:. Please note that if selectedSegmentIndex does not return a positive value, using it for titleForSegmentAtIndex will cause an error.

0

精彩评论

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