我在en.lproj中放置了plist。我想获得它的路径这样,如何在mac os下获得本地化plist的路径x
NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
NSMutableString *localizedPath = [[NSMutableString alloc] initWithFormat:@"%@/%@.%@/%@",bundlePath,lang,@"lproj",@"1.plist"];
其中1.plist是en.lproj/1.plist投入资源。
是否[[NSBundle mainBundle] bundlePath];
给我的资源的正确路径?任何机构都可以给我任何线索。我在iPhone上使用它,我是Mac OS X开发新手,可以用于Mac OS X开发吗?
- 问候,
U'suf
嘿感谢这个工作。 :-) – user272312 2010-03-22 04:47:21