好的一个非常简单的问题..在c ++中似乎有用但在Objective-c中我似乎很难用它:S ..如果你想比较两个数组它应该是这样的东西吧
for ( int i = 0; i < [appdelegate.nicearray count]; i++ )
{
if ( appdelegate.nicearray[i] == appdelegate.exercarray[i] )
{
NSLog(@"the same elements in this selection");
}
}
Run Code Online (Sandbox Code Playgroud)
究竟是什么问题?