Skip to content

Instantly share code, notes, and snippets.

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.")
self.toogleButton(self.buttonGoLive, to: .off)
guard let activityViewController = activityViewController else
if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.pad
activityViewController.modalPresentationStyle = UIModalPresentationStyle.popover
activityViewController.popoverPresentationController?.sourceRect =
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