I’ve got some code for an UISegmentSwitch but it just don’t work.
Code:
- (IBAction)seg:(id)sender {
switch (segSwitch.selectedSegmentIndex) {
case 0:
NSLog(@"test1");
break;
case 1:
NSLog(@"Testy");
break;
default:
break;
}
}
Ofcourse everything is declared and connected.
Thanks in advance
Try doing it this way
also make sure that your segmented control is connected to the IBAction