Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
stringWithFormat は文字列を返す必要があります。なぜこのステートメントはコンパイルされないのですか
NSAssert(YES, [NSString stringWithFormat:@"%@",@"test if compiles"]);
いつ
NSAssert(YES, @"test if compiles");
コンパイルしますか?
これを次のように使用します。
NSAssert(YES, ([NSString stringWithFormat:@"%@",@"test if compiles"])); // Pass it in brackets ()
お役に立てば幸いです。