This is a simple Objective-C question.
When you use a @trythe work flow can run in 2 ways
- If some NSException appear, the code immediately jump to
@catchblock and than to@finally - If not, finish to run the
@tryblock 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?