Skip to content

Instantly share code, notes, and snippets.

@azogheb
Created July 20, 2016 05:38
Show Gist options
  • Save azogheb/7d30b4d30e45b6b515a411d14a0c3846 to your computer and use it in GitHub Desktop.
Save azogheb/7d30b4d30e45b6b515a411d14a0c3846 to your computer and use it in GitHub Desktop.
// Request access to the tags for this resource request
[resourceRequest beginAccessingResourcesWithCompletionHandler:
^(NSError * __nullable error)
{
// Check if there is an error
if (error) {
// There is a problem so update the app state
//self.resourcesLoaded = NO;
// Should also inform the user of the error
return;
}
// The associated resources are loaded
//self.resourcesAvailable = YES;
dispatch_async(dispatch_get_main_queue(), ^{
UIImage *image = [UIImage imageNamed:@"testmap"];
});
UIImage *image = [UIImage imageNamed:@"testmap"];
}
];
@azogheb
Copy link
Author

azogheb commented Jul 20, 2016

Line 19 works
Line 22 does not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment