iOS 8 Today Extension:是否可以添加可编辑的文本字段? [英] iOS 8 Today Extension: Is it possible to add editable text field?

查看:238
本文介绍了iOS 8 Today Extension:是否可以添加可编辑的文本字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个简单的今日扩展。我能够添加一个标签,其中值可以通过主应用程序更新。现在,我正在探索通过扩展更新主应用程序中的值的可能性。但是,当我尝试添加文本字段时,我无法输入任何内容。

I am trying to create a simple Today Extension. I was able to add a label wherein the value can be updated via the main app. Now, I am exploring the possibility to update the value in main app via the extension. However, when I tried to add a textfield, I cannot input anything.

这是扩展的限制吗?如果没有,你能指导我如何做到这一点吗?非常感谢你!

Is this a limitation of the extension? If not, can you please guide me how to accomplish this? Thank you very much!

推荐答案

不幸的是,这是一个限制。

Unfortunately, it is a limitation.

它说是Apple的扩展编程指南:

It says in Apple's extension programming guide:


由于用户与Today小部件的交互快速且有限,您应该设计一个简单,简化的UI,突出显示信息用户感兴趣。通常,限制窗口小部件中交互项的数量是个好主意。特别要注意的是iOS小部件不支持键盘输入。

Because user interaction with Today widgets is quick and limited, you should design a simple, streamlined UI that highlights the information users are interested in. In general, it’s a good idea to limit the number of interactive items in a widget. In particular, note that iOS widgets don’t support keyboard entry.

https://developer.apple.com/library /content/documentation/General/Conceptual/ExtensibilityPG/Today.html#//apple_ref/doc/uid/TP40014214-CH11-SW1

这篇关于iOS 8 Today Extension:是否可以添加可编辑的文本字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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