Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RPBroadcastActivityViewController.load(handler: { (activityViewController: RPBroadcastActivityViewController?, error: Error?) -> Void in
if let error = error
{
print("Error al iniciar la emisión.")
print(error.localizedDescription)
self.toogleButton(self.buttonGoLive, to: .off)
}
guard let activityViewController = activityViewController else
{
return
}
if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.pad
{
activityViewController.modalPresentationStyle = UIModalPresentationStyle.popover
activityViewController.popoverPresentationController?.sourceRect = CGRect.zero
activityViewController.popoverPresentationController?.sourceView = self.buttonGoLive
}
activityViewController.delegate = self
self.present(activityViewController, animated: true, completion: nil)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.