Search code examples
iosobjective-cnslog

NSLog symbol print on console?


How to print symbol "%" in NSLog ???

NSLog(@"str %"); 

enter image description here

It gives warning

incomplete format specifier

How to resolve this problem?


Solution

  • try this

    NSLog(@"str : %%");
    

    Thanks