How to see output on console in iPhone
I am running my project on iPhone simulator. 开发者_运维百科I want to see my NSlog("") output on console. I am new with this interface, How will I see output on console when I am running on simulator.
Go to the menu bar , select run option, it leads to a drop menu, there you have to select console.
Run---> Console
The console output is visible in Xcode. Output is logged while running the app on the Simulator from Xcode.
You have already given answer to your question, Use NSLog() to print on console
Follow this steps in XCode
Go to Menu Run -> Console, you will see the console output
Hit Cmd+Shift+R in Xcode <= 3.x
In XCode 4, it's showed as in the screenshot:
It's the black bold text, showing an error log. Using NSLog displays the text you described in the code.
If you are using XCode4 then press "command + shift + y" to see your NSLog(@"") on consol and XCode is not XCode4 then press "command + control + r" to see your NSLog(@"") on consol.
精彩评论