IOS 使用输入附件 View 切换预测 TextView
<p><p>我的键盘上方有一个输入附件 View 及其预测 TextView 。有什么方法可以切换预测 TextView 和我的输入附件 View 的位置吗?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>没有。 <code>inputAccessoryView</code> 显示在 iOS 键盘上方。 “预测 TextView ”是 <em>iOS 键盘的一部分</em>。</p>
<blockquote>
<p>You may also attach an input accessory view to the system keyboard or to a custom input view; this accessory view <strong>runs along the top of the main input view</strong> and can contain, for example, controls that affect the text in some way or labels that display some information about the text. <a href="https://developer.apple.com/library/prerelease/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/InputViews/InputViews.html" rel="noreferrer noopener nofollow">via Apple</a></p>
</blockquote>
<p>可以通过 <code>UITextAutocorrectionTypeNo</code> 以编程方式隐藏预测 TextView ,但不能在预测 TextView 和键盘之间放置 View 。</p>
<p> <img src="/image/HFFkb.png" alt="input view above predictive text."/> </p></p>
<p style="font-size: 20px;">关于IOS 使用输入附件 View 切换预测 TextView ,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/30113728/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/30113728/
</a>
</p>
页:
[1]