Created
July 13, 2017 07:12
-
-
Save juwencheng/ed278df40d56ba61fa448584c4a13393 to your computer and use it in GitHub Desktop.
如何定义静态的字符串数组,不能用NSArray,得用static array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const static NSString * const strings[] = { | |
[0] = @"string_1", | |
[1] = @"string_2", | |
[2] = @"string_3", | |
[3] = @"string_4", | |
// ... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment