Sunday, March 16, 2014

Using NSLog

This tutorial will should you how to use the NSLog function to display things in the debugging console. This can be useful to see what going on inside the app like verifying the values of variables.

Open main.m file

Insert NSLog command after @autoreleasepool and inside of the brackets {   }


@autoreleasepool {
   NSLog(@"Come in Berlin"); 
} 

Verify that the console is displayed by clicking on the hide/display console area button in the upper right.

Run the application by clicking on the triangle in the upper left of the screen.




See more https://www.youtube.com/watch?v=to7bfqCeQIs

No comments:

Post a Comment