Return bool inside pfcloud function
问题 I'm creating a method that checks if the user has any friends who are already registered to the app. However, when I'm trying to return from within this block, i get a compiler error saying: Incompatible block pointer types sending 'BOOL (^)(__strong id, NSError *__strong)' to parameter of type 'PFIdResultBlock' (aka 'void (^)(__strong id, NSError *__strong)') This is when I run the code below: -(BOOL)hasFriend:(NSArray*)phoneNums{ [PFCloud callFunctionInBackground:@"checkUsers"