Created
January 10, 2012 10:27
-
-
Save jk/1588378 to your computer and use it in GitHub Desktop.
ARC GCD Crash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)crashQueue { | |
dispatch_queue_t webviewQueue = dispatch_queue_create("de.company.myCrashQueue", DISPATCH_QUEUE_SERIAL); | |
_webviewQueueValid = YES; | |
// NSLog(self.company); | |
dispatch_async(webviewQueue, ^{ | |
if (_webviewQueueValid) { | |
NSURL *companyURL = [NSURL URLWithString:[companyURI stringByAppendingFormat:@"%@.html", self.company.pathName]]; | |
NSMutableURLRequest *requestCompany = [NSMutableURLRequest requestWithURL:companyURL]; | |
[self.companyWebView loadRequest:requestCompany]; | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment