如何在iPhone上从数组中提取字符串?

Chi*_*ong 1 arrays string iphone substring

我想通过索引从数组中提取一个字符串.

例如带对象的数组:@"Hello",@"World"

如何从中获取@"世界"?我使用数组[1],但它似乎不起作用.

Chi*_*ong 5

我发现这种方法效果很好:

- (id)objectAtIndex:(NSUInteger)index
Run Code Online (Sandbox Code Playgroud)