Вам необходимо предоставить блок для параметра completed
:
[self getMyBlock:^(NSString *result) {
// this code is called when the asynchronous code inside getMyBlock is done
}];
Где-то в реализации метода getMyBlock
есть код, подобный следующему:
- (void)getMyBlock: (void (^)(NSString *))completed {
// do some asynchronous stuff
NSString *result = // some result string
if (completed) {
completed(result);
}
}