NSLog
The NSLog function displays a string on the console.
Example
NSString *myString = @"Hello World";
NSLog(myString);
This segment of code would print:
Hello World
Example
int x = 5;
NSLog(@"x = %i",x);
This segment of code would print:
x = 5