【发布时间】:2018-03-13 14:13:49
【问题描述】:
【问题讨论】:
-
我打赌这里应该显示一些代码......
【问题讨论】:
使用finishBroadcastWithError,NSError必须用'NSLocalizedFailureReasonErrorKey'来描述。
【讨论】:
您可以通过此协议处理此问题
finishBroadcastWithError()
在 RPBroadcast 处理程序中
更多信息请参考apple Doc
示例:
let userInfo = [NSLocalizedFailureReasonErrorKey: "You have Stopped Screen Sharing"]
finishBroadcastWithError(NSError(domain: "ScreenShare", code: -1, userInfo: userInfo))
【讨论】: