This is a simple Objective-C question.
When you use a @try
the work flow can run in 2 ways
- If some NSException appear, the code immediately jump to
@catch
block and than to@finally
- If not, finish to run the
@try
block and than run@finally
So, what is the difference to use or not use the @finally
block? If I use only:
-(void)function{
@try {
...
}
@catch (NSException *exception) {
...
}
>>>The workflow will run this line in any case?
}
Than the rest of the function will run, or only the @catch
block if a NSException is created?