In my code I am evaluating strings as mathematical expressions for example:
NSString *formula=@\"9*7\"; NSExpression *expr =[NSExpression expressionWithFormat:fo
The reason this exception is not caught with your current code is that the exception is being thrown from this line:
NSExpression *expr =[NSExpression expressionWithFormat:formula];
You need to move this line into the @try block.
@try