I'm trying to call a completion handler but it's never called. I'm doing something wrong ?
I see the first NSLog ("Enter in my second funcition"), but the second NSlog ("completion handler") never apears in my console.
Here is the definition of the function and the caller with completion
- (void)myFirstFunction:(BOOL)selected numberOfBrothers:(int)brothers completion:(void (^)(void))completion
- (void)mySecondFunction
{
NSLog(@"Enter in my Second function");
[self myFirstFunction:true
numberOfBrothers:1
completion:^{
NSLog(@"COMPLETION HANDLER");
}];
}
- (void)myFirstFunction:(BOOL)selected numberOfBrothers:(int)brothers completion:(void (^)(void))completion
{
NSLog(@"Enter in my First function");
}
thank you