KeyboardViewController NSLog IOS 8 [英] KeyboardViewController NSLog IOS 8

查看:145
本文介绍了KeyboardViewController NSLog IOS 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在iOS 8(Xcode Beta版)的其他视图中使用NSlog登录。

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

但是,我无法在KeyboardViewController的键盘扩展中使用NSLog。它没有出现在日志中。

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

NSLog(@键盘中的viewdidload);

NSLog(@"viewdidload in keyboard");

我想知道如何检测/记录实时。

I would like to know how to detect/log in real time.

推荐答案

您只是看不到Xcode调试区域中记录的内容,因为Xcode调试器不是没有附加到你的扩展程序。扩展几乎完全独立于其包含的应用程序。

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.

这里回答:物理设备的
https://stackoverflow.com/a/24050325/1453948 模拟器
https://stackoverflow.com/a/24043265/1453948

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

这篇关于KeyboardViewController NSLog IOS 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆