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.
NSLog に記号「%」を出力する方法 ???
NSLog(@"str %");
それは警告を与える
不完全な書式指定子
この問題を解決するにはどうすればよいですか?
これを試して
NSLog(@"str : %%");
ありがとう
2 つのパーセント記号を使用するだけです。
NSLog(@"str %%"); //prints "str %"
このコードを使用してください
NSLog(@"str %%");
このように印刷する必要があります
NSLog(@"%%");