如何将其设置/制作成 NSMutableArray?
NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
[prefs setInteger:1 forKey:@"KeyI1"];
[prefs setInteger:1 forKey:@"KeyJ1"];
[prefs setInteger:1 forKey:@"KeyI2"];
[prefs setInteger:1 forKey:@"KeyJ2"];
我可以将其用于这样的 if 语句:
NSInteger I1=[prefs integerForKey:@"KeyI1"];
NSInteger I2=[prefs integerForKey:@"KeyI2"]
NSInteger J1=[prefs integerForKey:@"KeyJ1"]
NSInteger J2=[prefs integerForKey:@"KeyJ2"]
if ( I1 == index1 && K1 == index2){
}
if ( I2 == index1 && K2 == index2){
}