In my code dispash_async block I can not access global variables . I get this error 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]; });
Can someone help me figure out the reason?
multithreading ios objective-c objective-c-blocks grand-central-dispatch
Vaquita Jul 05 2018-12-12T00: 00Z
source share