tvOS - UITextfield 上的 inputView 不起作用

问题描述 投票:0回答:1

在UITextField上设置inputView不起作用。当文本字段被聚焦/选择时,它应该显示 inputView。相反,它什么都不做,冻结并缓慢增加内存使用量,直到 OOM 并崩溃。

在 UITextField 上设置任何视图(空 UIView())都会重现该问题。

尝试过运行 tvOS 17 的 AppleTV。 还有模拟器 16 和 17。

这是一个显示问题案例的测试项目https://github.com/drs-st/test-tvos-custom-inputview/blob/develop/TestKeyboard/ViewController.swift

此问题也已发布在Apple开发者论坛中https://developer.apple.com/forums/thread/745931

uitextfield tvos custom-keyboard inputview
1个回答
0
投票

Apple 通过 Apple 开发者技术支持确认该功能确实无法正常工作。

我想确认

inputView
不适用于 tvOS。如果这对于实现您的文本输入体验很重要,我建议您提交反馈报告以请求支持。

© www.soinside.com 2019 - 2024. All rights reserved.