在我的 dispach_async 代码block
中,我无法访问global variables
. 我收到此错误Variable is not Assignable (missing _block type specifier)
。
NSString *textString;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,
(unsigned long)NULL), ^(void) {
textString = [self getTextString];
});
谁能帮我找出原因?