问题标签 [ios-keyboard-extension]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1068 浏览

swift - 键盘扩展中的 UICollectionview

我试图将 UICollectionview 放入我的键盘扩展中,这是我快速制作的。但我无法让它工作。键盘只是在启动时崩溃。有人知道怎么修这个东西吗?或者甚至可以在键盘扩展中使用 UICollectionview。

类键盘视图控制器:UIInputViewController,UICollectionViewDelegateFlowLayout,UICollectionViewDataSource{

}

0 投票
1 回答
799 浏览

ios - 第三方键盘中的 resignFirstResponder()

我有一个第三方键盘,目前包含一个UISearchBar(即启动时的第一响应者),用户能够搜索内容(即 gifs)以便能够复制、粘贴、发送给朋友等。

理论上,在栏中输入文本并按下搜索后,用户应该能够在应用程序的实际中输入文本UITextView(即消息应用程序中的消息字段),但由于某种原因这不起作用,虽然打字有效,但什么也没有实际出现。我试过了searchBar.resignFirstResponder()self.becomeFirstResponder()很多组合都.endEditing(true)无济于事。我知道像 Giffy 这样的应用程序可以做到这一点,但我一生都无法弄清楚。任何帮助将不胜感激。

0 投票
3 回答
5713 浏览

ios - 从另一个应用程序以编程方式在 iOS 的设置应用程序中打开键盘的设置屏幕

我们如何以编程方式直接进入 iOS 设置应用程序的以下任何屏幕

键盘屏幕 在此处输入图像描述

0 投票
0 回答
345 浏览

ios - iOS 键盘扩展 - 禁止在键盘列表中显示自定义键盘,直到用户购买

我已经Custom Keyboard Extension在我的一个应用程序中制作了。这在所有设备上都可以正常工作。

扩展名是automatically installed in the OS. 正确的?- 是的

问题 :

我想禁止用户从"Add New Keyboard..."列表中选择 MY KEYBOARD UNTIL USER BUY IT

每当用户制作In-App Purchase successfully. I want to add custom keyboard to the "Add New Keyboard..." list. 然后用户可以免费使用它。

有没有可能。???任何建议表示赞赏。

谢谢你。

0 投票
0 回答
44 浏览

ios - 我的网站不允许来自 iOS 的第三方键盘

当我创建带有输入字段的网站并在 iphone 上查看它们时,尽管我使用名为 swype 的第三方键盘作为我的默认键盘,但始终会弹出默认键盘。我需要在输入标签中添加某个属性以允许使用第三方键盘吗?如果没有,我将如何允许他们?让我知道。预先感谢您的任何帮助。

0 投票
1 回答
119 浏览

ios - iOS 键盘使视图消失

我这里有点问题。我有我的应用程序的主要视图,适用于不同的窗口。我已将它们从视线中移开,并且它们会在需要时进行动画处理,在我决定创建一个文本字段之前,我从来没有遇到过这个问题。当我单击按钮将视图带入显示时,它会出现,但是当我单击要键入的文本字段并加载键盘时,视图会消失,但是如果我单击按钮以使视图返回,则将输入并准备好文本字段输入。有人有任何解决方案吗?我在下面附上了视图出现方式的代码。

谢谢,

柯蒂斯

0 投票
1 回答
293 浏览

ios - 在应用程序中使用自定义 InputViewController

我目前的任务是 iOS 键盘扩展。现在,要通过 App Store Review,包含应用程序必须提供一些“真实”内容。我想过让用户在“设置”中启用它之前测试键盘。所以我的故事板看起来像这样(减少显示相关的东西):

这一切正常,键盘显示在容器中,但是 - 由于textDocumentProxy键盘视图控制器中的对象没有附加到任何东西 - 用户看不到他/她正在输入的内容。

现在我正在寻找一种将键盘“附加”到文本字段的方法,同时保持系统键盘不受干扰,以便用户可以在自定义键盘上键入。

我已经设法通过将以下函数附加到文本字段的editing did begin操作来移除系统键盘。

0 投票
1 回答
645 浏览

ios - Custom iOS keyboard accesses container without Full Access privileges

Summary

I'm currently implementing a custom iOS keyboard. I need to share data between the keyboard and the containing apps. This works to some extent even if the user has disabled full access. Why?

The Details

To share data between the keyboard and the containing app, I have installed an app group and use

to share files and

for other settings.

As far as I understand, the user has to activate full access for my keyboard in the system settings. The App Extension Programming Guide states:

If you request open access by setting this key’s value to YES, your keyboard gains the following capabilities [...]:

  • Option to use a shared container with the keyboard’s containing app, which enables features such as providing a custom lexicon management UI in the containing app

I have added the required property to the plist file and see the according option in the keyboard settings. To test if the user has allowed full access to the keyboard I went with the known approach and test for pasteboard availability

which works as expected.

However, I noticed that if full access is disabled I can still load images from the keyboard using

with imagePath pointing to a file in the shared container. I have tested this on two devices running iOS 9.2. Shouldn't this be impossible? I'm wondering if I misunderstood the restrictions to the shared container.

0 投票
1 回答
164 浏览

ios - 在没有完全访问权限的情况下无法加载 ios 第三方键盘

我正在开发一个 iOS 键盘扩展,它在第一次启用完全访问时效果很好。但是第一次禁用完全访问时无法加载。有谁知道为什么?

我信任提供商的资料。

0 投票
2 回答
440 浏览

ios - 测试 iOS 键盘应用扩展

有没有办法对键盘应用程序扩展进行单元测试或 UI 测试?

在 XCode6 中似乎不可能,但是 Apple 在 XCode 7 中改变了什么?