2
NSInteger timeNum = time;
NSMutableArray theResultArray = [[NSMutableArray alloc] init];
[theResultArray insertObject:[NSNumber numberWithInt:timeNum] atIndex:rightIndex];
這是我們將NSInteger插入到數組的方式。如何爲NSString做到這一點?如何將字符串添加到特定索引處的NSArray中?