I am using below code for WebViewRenderer in iOS
public class WebViewPageRenderer : WebViewRenderer
{
protected override void OnElementChanged(VisualElementChangedEventArgs e)
{
base.OnElementChanged(e);
//creating new webview object to load url
UIWebView webView = new UIWebView() { Delegate = new WtBWVDelegate() };
}
}
In above method Control is not available, but it is working loading the website.
public class WebViewPageRenderer : ViewRenderer<Xamarin.Forms.WebView, UIWebView>
{
protected override void OnElementChanged(ElementChangedEventArgs<UIWebView> e)
{
//Control is always null
if(Control != null)
{
}
}
}
In ViewRenderer method control is always null and even creating new WebView class also not loading the website.
I have created many renderers like entry, editor controls, here only I am facing problem