このコード行は ans を提供します。2 (これは正しい)
int def = arc4random() % 2;
NSLog(@"%@",[uniqueNumbers objectAtIndex:def]);
しかし、私が使用するとき
int def = arc4random() % 2;
//NSLog(@"%@",[uniqueNumbers objectAtIndex:def]);
c1 = (int)[uniqueNumbers objectAtIndex:def];
NSLog(@"%d", c1);
c1 は整数です。何が問題ですか?