How to retrieve resources from a dependency's bundle on iPhone?
I've added the dependency project to my project. The dependency h开发者_如何学Goas a bundle with resources that I need. How to I get a path to those resources?
I tried the follow and get a NO
. Any suggestions?
NSFileManager *fileManager = [[NSFileManager alloc] init];
NSString *bundlePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Dendency.bundle"];
if ([fileManager fileExistsAtPath:bundlePath])
{
NSLog(@"YES");
}
else
{
NSLog(@"NO");
}
精彩评论