UISegmentcontrol appearances causing issues

后端 未结 2 1730
予麋鹿
予麋鹿 2021-01-23 15:58

i need help on my UISegment appearances, i set this in my app delegate everything works fine.

till i add in this code to change my selected segment color, it caused an i

2条回答
  •  别那么骄傲
    2021-01-23 16:37

    It looks like the code above is only setting appearance for UIControlStateNormal, you also need to set the appearance for UIControlStateSelected.

提交回复
热议问题