UIScrollView用画外音:移动焦点时,如何忽略键盘?

我有A.UIScrollView采用列表UILabelUITextField, one problem I’m facing is that when I’m editing a text field with keyboard visible, say:

name:
[text field]
address:
[text field]
KEYBOARD (covers several labels and text fields)

there are other labels and text fields behind KEYBOARD, with VoiceOver turned on, the focus box moves from the lowest visible view above the keyboard straight to the top-left key on the keyboard, despite the fact that there’re other views covered by the keyboard.

我确实有代码改变contentInsetsof的UIScrollView,使得当键盘显示了,在滚动视图的所有子视图可以在键盘上方通过滚动而变得可见。有什么事我应该设置,以确保在所有的VoiceOver焦点移到子视图中滚动查看,移动到键盘前?

I想过听元素的通知也成为重点,并增加contentOffsetof滚动视图,以便下一个元素是至少部分可见的,但我已经看到了类似的布局和VoiceOver的重点应用(如本机消息应用)将跨子视图在键盘上跳跃之前只是移动。

Thanks!

回答 0