Skip to content

Instantly share code, notes, and snippets.

@juwencheng
Created July 13, 2017 07:12
Show Gist options
  • Save juwencheng/ed278df40d56ba61fa448584c4a13393 to your computer and use it in GitHub Desktop.
Save juwencheng/ed278df40d56ba61fa448584c4a13393 to your computer and use it in GitHub Desktop.
如何定义静态的字符串数组,不能用NSArray,得用static array
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