I want to use in my application UISegmentedControl, to make something similar to TabBar component in windows. And I use ValueChanged Handler:
- (IBAction)tabBarChange:(id)sender{
int pageId = tabBar.selectedSegmentIndex;
// [self switchPage:pageId];
}
switchPage is empty function now, no one line of code written.
But, when taping on SegmentedControl, EXC_BAD_ACCESS exception appears.
What I did wrong?
So, i understand that this method crashed:
If you try to make some test function without passing any argument, will it work, for example: