UISegmentedControl deselect (make none of the segments selected)

前端 未结 8 2074
我寻月下人不归
我寻月下人不归 2021-02-01 01:30

in fact the title contains my question. I have a UISegmentedControl, and need to deselect currently selected tab. I tried:

[menu setSelectedSegmentIndex:-1];
         


        
8条回答
  •  抹茶落季
    2021-02-01 01:52

    I would assume that you've called [myArray length] instead of the proper [myArray count] somewhere in your code. NSArray uses the count method, not length for the number of items it contains.

提交回复
热议问题