KeyboardViewController NSLog IOS 8

后端 未结 1 698
夕颜
夕颜 2021-01-21 08:19

We can log with NSlog in other view in iOS 8 (Xcode Beta Version).

However, I can\'t NSLog in keyboard extension in KeyboardViewController. It didn\'t appear in log.

相关标签:
1条回答
  • 2021-01-21 08:47

    You just don't see what is being logged in the debug area of Xcode because the Xcode debugger isn't attached to your extension. Extensions are nearly completely independent from their containing app.

    Answered here: for physical device: https://stackoverflow.com/a/24050325/1453948 for simulator: https://stackoverflow.com/a/24043265/1453948

    So in case of simulator go to Simulator menu Debug -> Open System Log

    0 讨论(0)
提交回复
热议问题