I can't understand this "uncaught exception" that keeps appearing. My code is here:
In Interface Builder I control drag from the files owner to the switches and define their their IBOutlets and I control drag back to the files owner from the switch and click the two functions listed above. Every time I launch the app it freezes and gives me the "TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION" error in Xcode.
Any suggestions?
Code:
-(IBAction)musicSwitchChange:(id)sender
{
if(musicSwitch.isOn)
{
[soundSwitch setOn:YES animated:YES];
}
else
{
[soundSwitch setOn:NO animated:YES];
}
}
-(IBAction)soundSwitchChange:(id)sender
{
if(soundSwitch.isOn)
{
[musicSwitch setOn:YES animated:YES];
}
else
{
[soundSwitch setOn:NO animated:YES];
}
}
In Interface Builder I control drag from the files owner to the switches and define their their IBOutlets and I control drag back to the files owner from the switch and click the two functions listed above. Every time I launch the app it freezes and gives me the "TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION" error in Xcode.
Any suggestions?