在UIInputViewController框架外绘制 [英] Drawing outside UIInputViewController frame

查看:639
本文介绍了在UIInputViewController框架外绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简介:我正在为亚美尼亚本地语言开发键盘扩展.

Intro: I'm developing a keyboard extension for my native Armenian language.

与系统默认键盘类似,该键盘的功能应该看起来最大.

The keyboard's features should look like maximum similar to system default keyboard.

我想在键盘内部拥有的功能之一是在触摸式按钮的顶部显示弹出窗口,就像英文键盘一样

One of the features I want to have inside my keyboard is to display Pop-ups on top of the touched buttons, like it is for English keyboard

如您所见,弹出窗口可以绘制在键盘框架之外

As you can see the pop-up can be drawn outside the keyboard frame

问题:我已经成功地在键盘框架内绘制了弹出窗口,但是它被掩盖在键盘框架上,即我无法绘制弹出窗口的某些部分键盘框架之外的镜头.即

Problem: I've managed to draw successfully the pop-up inside the frame of keyboard, but it gets masked to the keyboard frame, i.e. I'm not able to draw some part of pop-up outside of keyboard frame. I.e.

我尝试的方法:我尝试设置UIInputViewController实例的属性view.layer.masksToBounds = NO;,但仍然屏蔽了扩展名. 官方文档尚未对此问题进行描述.尽管这可能是iOS键盘扩展名的限制之一.

What I tried: I tried the to set the property view.layer.masksToBounds = NO; of UIInputViewController instance, but still I got my extension masked. The official docs are yet not quite descriptive on this issue. Although this might be one of the iOS keyboard extension limitations.

任何建议,欢迎参考如何在UIInputViewController框架外绘制?

Any suggestions, references are welcomed on how to draw outside UIInputViewController frame ?

推荐答案

查看全文

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