简体   繁体   中英

iOS Accessibility - Voice over repeating the same UI elements again in a loop

I am new to accessibility, I have a simple table view which has a custom cell with some labels and text field, I have also set the order of elements to be read by self.contentView.accessibilityElements in awake from nib method. But when I run the app in voice over mode, some elements are repeated multiple times in a loop this happen when i swap 2 fingers from bottom to top , How can i stop this or is this a expected behaviour ?.

    override func awakeFromNib() {
            super.awakeFromNib()

// Initialization code

            self.contentView.accessibilityElements = [headerlabel, Okbutton, nameTextField]

        }

两根手指向上滑动后,下面的代码将起作用,并读取单元格下面的所有内容。

self.accessibilityElements = [headerLabel, okButton, nameTextField]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM