In My dispach_async code block
I cannot access global variables
. I am getting 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 Anyone help me to find out the reason?