So I am getting a thread error Thread 1: Breakpoint 1.1 in my IBAction function. The code runs without error, but when I click the button on the simulator, the simulator crashes and produces the breakpoint error. The affected code is:
-(IBAction)ChangeView:(id)sender{
SecondView = [[SecondViewController alloc] initWithNibName:@"SecondViewController"
bundle:nil];
[self.view addSubview:SecondView.view];}
I have three other IBActions on the same class which work fine. I also defined in the h file as well.
-(IBAction)ChangeView:(id)sender;
I don't have much experience with thread errors and getting a bit frustrated trying to fix this problem. Any help is appreciated.
Thanks