添加弹出键的问题

添加弹出键的问题

本文介绍了iOS 8:键盘扩展.添加弹出键的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建我的键盘扩展应用程序,并且当用户点击它时,我在按钮上添加了按键弹出动画.它适用于内部图像,但顶行图像弹出区域在剪辑子视图时变得隐藏.我尝试使用 ClipToBound 属性并将其设置为 False.但仍然无法正常工作.有人知道如何解决这个问题吗?在 superview 上添加子视图也不起作用.

I am building my Keyboard Extension app and i have added key pop animation on button when user tap on it. It works fine for inside image but for top row image pop up area become hidden as it clip the subview. I tried with ClipToBound property and set as False. But still not working. Anyone have any idea how to fix this? adding subview on superview also not works.

图像 A 显示正确弹出,因为它位于键盘框架内.图像 B 在框架内弹出剪辑错误.

Image A is showing correct pop up as it is inside frame of keyboard. Image B is wrong as pop up clip inside frame.

推荐答案

我不认为你可以在键盘视图之外显示任何东西;它会被自动剪裁.

I don't think you are allowed to display anything outside of the keyboard view; it will get automatically clipped.

https://developer.apple.com/库/ios/documentation/General/Conceptual/ExtensibilityPG/Keyboard.html

这篇关于iOS 8:键盘扩展.添加弹出键的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 22:08