私はこれにかなり慣れていません-NSStringstringWithFormatをいくつかのテキストと比較しようとしています。stringWithStringで正常に動作します。stringWithFormatで機能しない理由がわかりませんか?誰もが提供できる助けに感謝します!
NSString *theQuestion = [NSString stringWithFormat:@"The same thing"];
if (theQuestion == @"The same thing"){
NSLog(@"stringWithFormat is the same as the given text");
}else{
NSLog(@"stringWithFormat is NOT the same as the given text");
NSLog(@"but theQuestion is:\"%@\"", theQuestion);
}