我为这样的本地化加载了BSBundle
:
NSURL *const bundleURL = [[NSBundle mainBundle]
URLForResource:localizationName
withExtension:@"lproj"];
NSBundle *const bundle = [NSBundle bundleWithURL:bundleURL];
...我如何(其他地方)通过向localizationName
发送消息来回复bundle
?
答案 0 :(得分:0)
基于this answer,这有效:
[[bundle.bundleURL URLByDeletingPathExtension] lastPathComponent]