ios – 无法将’UIView’类型的值转换为预期的参数类型’UIWebView’

ios – 无法将’UIView’类型的值转换为预期的参数类型’UIWebView’,第1张

概述我正在使用cordova-plugin-iosrtc. 我遇到以下错误. iOSRTCApp-master/platforms/ios/iOSRTCApp/Plugins/cordova-plugin-iosrtc/iosrtcPlugin.swift:622:24: Cannot convert value of type ‘UIView’ to expected argument type ‘ 我正在使用cordova-plugin-iosrtc.

我遇到以下错误.

iOSRTCApp-master/platforms/ios/iOSRTCApp/Plugins/cordova-plugin-iosrtc/iosrtcPlugin.swift:622:24:
Cannot convert value of type ‘UIVIEw’ to expected argument type
‘UIWebVIEw’

根据存储库,我不应该得到这个错误.

这是代码片段

let pluginMediaStreamRenderer = PluginMediaStreamRenderer(            webVIEw:self.webVIEw!,eventListener: { (data: NSDictionary) -> VoID in                let result = CDVPluginResult(status: CDVCommandStatus_OK,messageAsDictionary: data as [NSObject : AnyObject])                // Allow more callbacks.                result.setKeepCallbackAsBool(true);                self.emit(command.callbackID,result: result)            }        )

我试图将UIVIEw转换为UIwebvIEw,但这也没有发生.

解决方法 这是一些版本不兼容问题.

尝试安装以下cordova版本并添加兼容的iOS插件

npm install -g [email protected] platform add ios
总结

以上是内存溢出为你收集整理的ios – 无法将’UIView’类型的值转换为预期参数类型’UIWebView’全部内容,希望文章能够帮你解决ios – 无法将’UIView’类型的值转换为预期的参数类型’UIWebView’所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1062773.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存