Objective-C LanguageLogging


Syntax

  • NSLog(@"text to log"); // Basic text log
  • NSLog(@"data: %f - %.2f", myFloat, anotherFloat); // Logging text including float numbers.
  • NSLog(@"data: %i", myInteger); // Logging text including integer number.
  • NSLog(@"data: %@", myStringOrObject); // Logging text referencing another String or any NSObject derived object.

Remarks

For logging various types of objects and data-types refer to: Objective-C, Format Specifiers