Skip to content

Instantly share code, notes, and snippets.

@jk
Created January 10, 2012 10:27
Show Gist options
  • Save jk/1588378 to your computer and use it in GitHub Desktop.
Save jk/1588378 to your computer and use it in GitHub Desktop.
ARC GCD Crash
-(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