NSBundle - (not loaded yet) Error

前端 未结 2 2068
臣服心动
臣服心动 2021-01-05 18:58

I am trying to get a strings file table for use with NSLocalizedStringFromTableInBundle.

I am using this method:

+(NSBundle*)getBundleForLang:(NSStri         


        
2条回答
  •  清酒与你
    2021-01-05 19:28

    It's not an error. Strings bundle, such as en.lproj, does not include executable file. When you try to [bundle loadAndReturnError:], it will fail, and loadAndReturnError:'s document will tell you why.

提交回复
热议问题