简体   繁体   English

如何在UIInputViewController内使用UICollectionView进行自定义键盘扩展?

[英]How to use a UICollectionView inside a UIInputViewController for a custom keyboard extension?

A UICollectionView would be ideal for presenting pages of image options to use in a UIInputViewController for a custom iOS keyboard. UICollectionView非常适合呈现图像选项页面,以用于自定义iOS键盘的UIInputViewController中。

Is it possible to use the UICollectionView inside a Keyboard Extension, or does the functionality need to be replicated manually? 是否可以在Keyboard Extension中使用UICollectionView,还是需要手动复制功能?

You can use a UICollectionView inside a UIInput ViewController for a Keyboard Extension. 您可以在UIInput ViewController中使用UICollectionView进行键盘扩展。

The easiset way to do it is programmatically. 最简单的方法是通过编程。 The links I provided in my comment above will get you started. 我在上面的评论中提供的链接将帮助您入门。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在UIInputViewController中使用UICollectionView进行键盘扩展 - Can't use UICollectionView in UIInputViewController for keyboard extension 在UIInputViewController子类中检测旋转。 键盘扩展 - Detect rotation in UIInputViewController subclass. Keyboard extension iOS自定义键盘增加UIInputViewController高度 - iOS Custom keyboard increase UIInputViewController height UIInputViewController(自定义键盘)-未触发UIButton操作-为什么,为什么? - UIInputViewController (Custom Keyboard) - UIButton action not being triggered - Why, Oh Why? UIInputViewController键盘未在iOS 8中显示 - UIInputViewController keyboard not displaying in iOS 8 如何将WebView嵌入InputView for iOS自定义键盘应用程序扩展 - How to embed WebView inside InputView For IOS custom keyboard app extension 解雇键盘后如何恢复UIInputViewController self.view? - How to restore UIInputViewController self.view after dismissing the keyboard? 我们可以在通知内容扩展中使用 UICollectionView 吗? - can we use UICollectionView inside notification content extension? 如何使用Storyboard或Xib将iOS自定义键盘扩展用作Swift中的可编程自定义输入视图 - How do I use a iOS custom keyboard extension as a programmable custom input view in Swift using storyboards or xibs 如何在UIInputViewController中发送文本 - How to Send Text in an UIInputViewController
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM