String Constant as a Localized String

前端 未结 6 2042
深忆病人
深忆病人 2021-02-13 18:14

I would like to localize my constants. Constants are defined and declared the usual way:

extern NSString * const kStringName;

NSString * const kStringName = @\"         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-02-13 18:54

    A const variable may already optimized at compile time so you can't change it at runtime. You simply can't have const localized strings.

提交回复
热议问题