Created
July 20, 2016 05:38
-
-
Save azogheb/7d30b4d30e45b6b515a411d14a0c3846 to your computer and use it in GitHub Desktop.
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
// 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"]; | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 19 works
Line 22 does not