Using a static NSString in a .h file?

I have a configuration `.h` file , which i get access to, from another classes by import it to them . In that `.h` class , i have that : static NSString *const charIdList[] = { @"1", @"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"AA",@"BB",@"CC",@"DD",@"EE",@"FF",@"GG",@"HH",@"II",@"J",@"K" }; Which i use in other classes during the program run. Should i use the static variable here ? or using only a string will be safe ? What is the scope of the `NSString` in that case-if it will not be `static` ?

以上就是Using a static NSString in a .h file?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准