开发者

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");
 }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜