How to Custom group notify for blocks of functions

时间:2016-02-03 03:17:41

标签: ios iphone block

Asynchronous block be called in function, add these multiple functions into a group,process all results of blocks when all block execute completely.Is there a common and smart method to implement?
like dispatch_group_notify ,completionBlock

example

dispatch_group_notify

NSBlockOperation

1 个答案:

答案 0 :(得分:0)

str.replace(/([.?!])\s*(?=[A-Z])/g, "$1|").split("|")