2
的索引中的下面的行工作正常在NSLog
:提取一个Xcode阵列
NSLog(@"Selected Number: %@. Index of selected number: %i", [arrayNo objectAtIndex:row], row);
但我想使分配给整数变量的索引:
int num = ([arrayNo objectAtIndex:row], row);
线以上产生错误。我做错了什么?