开发者

using localization files in library

i have a component library. i created en.lproj folder and Localizable.strings,Library.strings file in this folder. i do this also for my main application. i can use localization开发者_StackOverflow中文版 file located in main application. i can not use localization file located in my library. how can i use localization files located in references library?

i use both;

Console.WriteLine (NSBundle..MainBundle.LocalizedString("test","");
Console.WriteLine (NSBundle..MainBundle.LocalizedString("test","","Library"));


First, I see two periods in you code. Secondly, did you set the build action to "Content"?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜