How to detect when the RPSystemBroadcastPickerView is tapped

后端 未结 2 507
星月不相逢
星月不相逢 2021-01-14 05:25

I am using RPSystemBroadcastPickerView to start a system-wide screen recording from my app. The RPSystemBroadcastPickerView is completely autonomou

2条回答
  •  无人共我
    2021-01-14 05:56

    I did not find any callbacks for that, but you can create your transparent button, add it above the RPSystemBroadcastPickerView. When user will tap on your button you will be able to hide the keyboard and than transfer the action to the RPSystemBroadcastPickerView using the code:

    for subview in screenSharingProviderPickerView.subviews {
        if let button = subview as? UIButton {
             button.sendActions(for: UIControlEvents.allTouchEvents)
        }
    }
    

提交回复
热议问题