I found an error in my application: the logic was that I was comparing two NSNumbers using "==" and I believe that it worked. But it no longer isEqualToNumber to iOS sdk 5, so I need to use isEqualToNumber .
Can anyone with iOS sdk 4.2 try to run the following code and give me the result. I tried to revert to an earlier Xcode to test it myself, but I could not do it.
NSNumber *num1 = [NSNumber numberWithInt:100]; NSNumber *num2 = [NSNumber numberWithInt:100]; if (num1 == num2) { NSLog(@"== YES"); } else { NSLog(@"== NO"); }
aryaxt
source share