How to print something to the console in Xcode?

后端 未结 6 1054
逝去的感伤
逝去的感伤 2021-02-06 20:45

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

Thanks!

6条回答
  •  广开言路
    2021-02-06 21:01

    @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");
    

提交回复
热议问题