Xcode 4.3.2 IBAction Thread 1 Button: Breakpoint 1.1 Error

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

+3
source share
1 answer

It looks like you have a breakpoint on your function. Follow the instructions on this stack overflow question to remove breakpoints.

, , , . , "c" .

+5

All Articles