Search code examples
iphonecocoanslog

How to log an long long value with NSLog?


How can I do that? What's the format specifier?

For example, I have:

long long veryLong = // assume value here
NSLog(@"%f", veryLong); // of course wrong...

Solution

  • The String Format Specifiers section of the String Programming Guide for Cocoa is a great bookmark for your browser ... ;-)