How to wrap an asynchronous method that takes a block and turn it synchronous in Objective-C

后端 未结 4 937
感情败类
感情败类 2021-02-02 18:03

I want to wrap an async API that look like this:

[someObject completeTaskWithCompletionHandler:^(NSString *result) {

}];

into a synchronous m

4条回答
提交回复
热议问题