From f85e6ba7cc7b058a9de5f99cf6a695f67d1b40c9 Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Mon, 13 May 2019 19:08:36 +0200 Subject: [PATCH] Correctif crash iOS --- AideDeJeu/AideDeJeu.iOS/PdfViewRenderer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AideDeJeu/AideDeJeu.iOS/PdfViewRenderer.cs b/AideDeJeu/AideDeJeu.iOS/PdfViewRenderer.cs index 77265fd5..67b57034 100644 --- a/AideDeJeu/AideDeJeu.iOS/PdfViewRenderer.cs +++ b/AideDeJeu/AideDeJeu.iOS/PdfViewRenderer.cs @@ -38,16 +38,16 @@ namespace AideDeJeu.iOS { base.OnElementChanged(e); - if (Control == null) - { - SetNativeControl(new UIWebView()); - } if (e.OldElement != null) { // Cleanup } if (e.NewElement != null) { + if (Control == null) + { + SetNativeControl(new UIWebView()); + } LoadPdfJS(); var pdfView = Element as PdfView;