Search code examples
objective-cnslog

What does "@" do when using NSLog function?


Why do we need to put the "@" before the quotation mark when using NSLog()?


Solution

  • @"..." is a NSString.

    "..." is a C string.

    NSLog() takes a NSString as argument.