The iOS frameworks, such as UIKit, send log entries to the console to indicate, among other things, when an unexpected event occurs. You can emit console messages in your iOS apps, too. One way to emit console messages is to use the NSLog
function. Console logs can help you analyze your app’s logic and track down bugs.
When running your app in a simulator, you can access the app’s console logs in the Console app (located in
/Applications/Utilities
)
沒有留言:
張貼留言