1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-31 07:26:09 +00:00

Correctif crash iOS

This commit is contained in:
Yan Maniez 2019-05-13 19:08:36 +02:00
parent b4b47dcf71
commit f85e6ba7cc

View file

@ -38,16 +38,16 @@ namespace AideDeJeu.iOS
{ {
base.OnElementChanged(e); base.OnElementChanged(e);
if (Control == null)
{
SetNativeControl(new UIWebView());
}
if (e.OldElement != null) if (e.OldElement != null)
{ {
// Cleanup // Cleanup
} }
if (e.NewElement != null) if (e.NewElement != null)
{ {
if (Control == null)
{
SetNativeControl(new UIWebView());
}
LoadPdfJS(); LoadPdfJS();
var pdfView = Element as PdfView; var pdfView = Element as PdfView;