So, I get the error Thread 1: Breakpoint 1.1 in my IBAction function. The code works without errors, but when I press the button on the simulator, the simulator crashes and throws a breakpoint error. Damaged code:
-(IBAction)ChangeView:(id)sender{
SecondView = [[SecondViewController alloc] initWithNibName:@"SecondViewController"
bundle:nil];
[self.view addSubview:SecondView.view];}
I have three other IBActions in the same class that work great. I also defined h in the file.
-(IBAction)ChangeView:(id)sender;
I don't have much experience with errors in the thread, and I'm a little disappointed trying to fix this problem. Any help is appreciated.
thank
source
share