views:

19

answers:

2

print the string is using [NSString stringWithFormat:@"%@", @"String"];

if I want to print integer, I just use %i, what should I do to print a short type? thank you.

A: 

Use the %hi specifier.

Dirk
A: 

Here's a good list with many types: CocoaDev NSLog

schaechtele