只是有这样的:
这个对我有用...
NSMutableString *resultString= [[NSMutableString alloc]init];
NSMutableArray *ArrayValue=[[NSMutableArray alloc]init];
[ArrayValue addObject:@"One"];
[ArrayValue addObject:@"Two"];
[ArrayValue addObject:@"Three"];
for (NSMutableString *s in ArrayValue)
{
[resultString appendString:s];
NSLog(@"%@",resultString);------->You should use %@ to print the string otherwise will show your warning.
}
控制台上的 O/P:
2011-03-08 19:13:02.243 iPadMables[4557:207] 一
2011-03-08 19:13:06.224 iPadMables[4557:207] OneTwo
2011-03-08 19:13:09.388 iPadMables[4557:207] OneTwoThree