Logging
suggest changeSyntax
- 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 an integer.
- NSLog(@"data: %@", myStringOrObject); // Logging text and an object.
%@sendsdescription.
Remarks
For logging various types of objects and data-types refer to: Objective-C, Format Specifiers
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents