标签:
1.UISegmentedControl
UISegmentedControl是通过selectedSegmentIndex选择的
- (IBAction)segmentedTouch:(id)sender { UISegmentedControl *sm = (UISegmentedControl *)sender; switch (sm.selectedSegmentIndex) { case 0: self.rightSwitch.hidden = YES; self.leftSwitch.hidden = NO; break; case 1: self.rightSwitch.hidden = NO; self.leftSwitch.hidden = YES; break; default: break; } }
标签:
原文地址:http://my.oschina.net/u/2346786/blog/413294