UIColorPickerViewController 在 iOS 17.1 中工作不正确

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

目前 UIColorPickerViewController 上没有关闭按钮(无法退出颜色选择器菜单)。我们如何在 iOS 17.1 上解决

我还发现:https://www.reddit.com/r/MarvisApp/comments/1731zwo/cant_exit_color_picker_menu/?share_id=q49BYewvMTgX9GcLibIHA&utm_content=2&utm_medium=ios_app&utm_name=ioscss&utm_source=share&utm_term=1

  let vc = UIColorPickerViewController()
  vc.delegate = self
  vc.modalPresentationStyle = .overFullScreen
 if let selectedColor = selectedColor {
      vc.selectedColor = selectedColor
 }
 present(vc, animated: true, completion: nil)

ios swift uicolor ios17 uicolorpickerviewcontroller
1个回答
0
投票

我刚刚改变了这个:

 vc.modalPresentationStyle = .formSheet
© www.soinside.com 2019 - 2024. All rights reserved.