UISegmentedControl with badge number

后端 未结 3 1280
一个人的身影
一个人的身影 2021-02-09 13:33

Just like the tabbar, I want to show badge on UISegmentedControl. As I cant see any predefined methods for UISegmentedControl just like available for <

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-09 13:50

    There is no badge property or method - unlike the tab bar. If you want to do this you will just have to put a custom image over it. You could subclass the segmented control and create a function that does this for you.

提交回复
热议问题