我正在开发一个阅读单词应用程序,单词来自段落,我希望 NSArray 范围存储最大单词,以帮助查找 NSArray 的大小
NSString *string=@"Some people say that Apple will fit an A5 chip in iphone5 with a clocking speed in range of 1.2 0r 1.5 GHz with 1 GB Ram. It is also anticipated that it will b fire proof phone. ";
NSArray *piecesOfOriginalString = [string componentsSeparatedByString:@" "];
NSLog(@"%i",piecesOfOriginalString.count);
这是我的简单例子。
在这里,问题是如何找到数组的最大允许大小???