How to print something to the console in Xcode?


How do you print something to the console of Xcode, and is it possible to view the Xcode console from the app itself?

Thanks!


Answers:


@Logan has put this perfectly. Potentially something worth pointing out also is that you can use

printf(whatever you want to print);

For example if you were printing a string:

printf("hello");