标签: iphone ipad ios localization
我有本地化的声音文件,我想根据用户的负载加载。
我之前做过,但忘记了,我认为这只是
NSLocalizedString(path,@"");
但它现在不起作用了?
任何帮助?
答案 0 :(得分:2)
[[NSBundle mainBundle] pathForResource:path ofType:extension]
http://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference.html#//apple_ref/occ/instm/NSBundle/pathForResource:ofType: