Tag Archives: NSLog

Objective-C – Format Specifier in NSString

Ususally we use the Format Specifier in NSLog() to show the debug output. For Example:

NSString* name = @"Yuen Ying Kit";
int age = 26;
NSLog(@"My name is %@", name);
NSLog(@"I am %i years old", age);

 
Continue reading Objective-C – Format Specifier in NSString