Try Catch not working

I get this stack trace in the Xcode 4 output window:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Page bottom]: unrecognized selector sent to instance 0xfbdb1f0' 

However, the calling code has an attempt to catch

 @try { [self restoreStateWithControlSurfaces:result]; } @catch (NSException *exception) { NSLog(@"Failed at restoreStateWithControlSurfaces %@", exception); retVal = NO; } 

This may be due to NSHangOnOtherExceptionMask , but I'm not sure how this fits together. How can I make my catch block work? This is in the simulator for iPad 4.2.

+4
source share
1 answer

An error is reported that prevents an NSInvalidArgumentException from being NSInvalidArgumentException . This error, apparently, affects only the simulator.

+3
source

All Articles