【问题标题】:Accessibility - unable to select button behind the modal view by Tap辅助功能 - 无法通过点击选择模式视图后面的按钮
【发布时间】:2022-10-15 06:03:30
【问题描述】:

我面临一个问题,如果语音开启,我无法通过点击选择按钮 1,只有当模式视图存在时。如果 VO 关闭,则 button1 轻按可以正常工作。我有这个示例代码。如果我只将定位器设置为中等,那么点击就可以正常工作。这是某种错误还是有任何解决方法可以使水龙头工作。

@IBAction func presentModalView(_ sender: UIButton) {        
    let modalViewController = ModalViewController(nibName: "ModalViewController", bundle: nil)
    modalViewController.modalPresentationStyle = .formSheet
    if let sheet = modalViewController.sheetPresentationController {
        sheet.largestUndimmedDetentIdentifier = .large
        sheet.prefersGrabberVisible = true
        sheet.detents = [.medium(), .large()]
    }
    
    self.navigationController?.present(modalViewController, animated: true)
}

@IBAction func button1Tapped(_ sender: UIButton) {
    print("ButtonTapped....")
}

【问题讨论】:

    标签: ios button tap


    【解决方案1】:

    您可以在 GitHub 存储库中使用名称为 Floating Panel

    检查:https://github.com/scenee/FloatingPanel

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-24
      • 2022-11-30
      • 1970-01-01
      • 2022-12-09
      • 2015-12-23
      • 1970-01-01
      相关资源
      最近更新 更多