gpt4 book ai didi

ios - 在打开 VoiceOver 的排序 View 列表中找不到
转载 作者:塔克拉玛干 更新时间:2023-11-02 08:14:29 25 4
gpt4 key购买 nike

我们有一个带有菜单的应用程序。有一个 UIBarButton 可以点击打开它。顶 View 滑开以显示菜单。打开 VoiceOver 后,我们会收到以下错误。我假设是因为该地区

2015-07-14 14:29:11.772 xxxxx[318:36506] |error| Could not find <UINavigationButton: 0x13e57db60; frame = (5 6; 40 30); opaque = NO; layer = <CALayer: 0x170435ee0>> in a list of sorted view [parent: <MobileUIApplication: 0x13e6023d0>] siblings (
"<UITableView: 0x13e8ac800; frame = (0 20; 375 647); clipsToBounds = YES; opaque = NO; autoresize = RM+BM; autoresizesSubviews = NO; gestureRecognizers = <NSArray: 0x17444cb10>; layer = <CALayer: 0x170436560>; contentOffset: {0, 0}; contentSize: {375, 680}>"
). If this happened right around a screen change, it might be okay, but otherwise this is probably a bug.
2015-07-14 14:29:11.775 xxxxx[318:36506] |error| Could not find <UINavigationButton: 0x13e57db60; frame = (5 6; 40 30); opaque = NO; layer = <CALayer: 0x170435ee0>> in a list of sorted view [parent: <MobileUIApplication: 0x13e6023d0>] siblings (
"<UITableView: 0x13e8ac800; frame = (0 20; 375 647); clipsToBounds = YES; opaque = NO; autoresize = RM+BM; autoresizesSubviews = NO; gestureRecognizers = <NSArray: 0x17444cb10>; layer = <CALayer: 0x170436560>; contentOffset: {0, 0}; contentSize: {375, 680}>"
). If this happened right around a screen change, it might be okay, but otherwise this is probably a bug.

我添加了 UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, nil);但我仍然收到错误。

我应该担心吗?应该怎么办?

最佳答案

您正在使用 UIAccessibilityLayoutChangedNotification,它用于通知元素或部分 UIView 的布局已更改。尝试使用 UIAccessibilityScreenChangedNotification

如果您的 tableView 滚动,您可能需要使用 UIAccessibilityPostNotification(UIAccessibilityPageScrolledNotification, [self.tableView indexPathsForVisibleRows]); 这样每次 tableView 滚动时,焦点都在 tableView 的第一个单元格上.

关于ios - 在打开 VoiceOver 的排序 View 列表中找不到 <UINavigationButton...,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31415017/

25 4 0

Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com