NSArray を反復処理しようとしていますが、位置 i にある配列の内容を NSMutableString インスタンスに連結しようとすると、コンパイラ エラーが発生し続けます。
「;の前に構文エラー」があることを教えてくれるだけです。それは私に多くを教えてくれません。この行で:
[output appendString:[widget.children objectAtIndex:i];
私は私の構文に何か問題があるに違いないことを知っています..
私の機能は次のとおりです
- (NSString *)readArray
{
NSMutableString *output = [[NSMutableString alloc] init];
int i;
int arraySize = widget.children.count;
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
for (i = 0; i < arraySize; i++)
{
[output appendString:[widget.children objectAtIndex:i]; (throws error here)
}
[pool release];
return output;
}
前もって感謝します