To catch an exception in objective-c you need to do this:
@try
{
//Your code
}
@catch(NSException* e) // or subclass of NSException
{
}
However you do not want to catch an NSInvalidArgumentException, as it is indicative of a bug in your code. As Ken says, it's effectively a controlled crash. The most common cause of this exception is trying to insert nil into a colllection e.g. NSMutableArray or NSMutableDictionary. If that is the problem, you can find it really easily by running your code in the debugger with "Stop on Objective-C exceptions" enabled.