Skip to content

Instantly share code, notes, and snippets.

@omorandi
Created September 19, 2011 09:37
Show Gist options
  • Save omorandi/1226220 to your computer and use it in GitHub Desktop.
Save omorandi/1226220 to your computer and use it in GitHub Desktop.
Get asset files in Ti iOS modules
#define MODULE_ID @"your.module.id"
- (NSURL *)getAssetURL:(NSString*)resFile
{
NSString * filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:[NSString stringWithFormat:@"modules/%@/%@",MODULE_ID, resFile]];
return [NSURL fileURLWithPath:filePath];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment