Objective-C Language Logging

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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



Got any Objective-C Language Question?