UISegmentedControl selected state icon image

后端 未结 6 1675
执笔经年
执笔经年 2021-02-20 07:54

How can I set the icon image for selected state of the UISegmentedControl. Is the UISegmentedControl really missing this functionality or

6条回答
  •  滥情空心
    2021-02-20 08:46

    You can set by using single line of code [uisegmentButtonRef setImage:[UIImage imageNamed:@"allbtndown.png"] forSegmentAtIndex:segmentIndex];

    If you use by Xib please find the image

    enter image description here

提交回复
热议问题