当点击保存按钮时,我需要清除UISegmentedcontrol(即,未选择的上一个选定按钮).我不是寻找setMomentary,因为我想要选择坚持,但也可以在以后取消选择.
myUISegmentedControl.selectedSegmentIndex = -1; //turn off the current selection