[Objective-C]文字列配列を定義する方法

コード下記:
#inport<Foundation/Foundation.h>

int main(int argc, char *argv[])
{
const char *words[4] = {“startnews24_aa", “startnews24_bb", “startnews24_cc"}; //定义字符串数组
int wordCount = 4;

for(int i =0; i < wordCount; i++)
{
NSLog(@"%s is %lu characters long", words[i], strlen(words[i]));
}
return 0;
}

IOS

Posted by arkgame