I am having a problem running after through the QLPreviewController interface.
view.PushViewController(previewController, true);
QLPreviewController starts up and displays what it should. At this point,
UIApplication.Main(args, null, typeof(AppDelegate));
throws an error
{System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Maui.Controls.Handlers.Compatibility.NavigationRenderer.SecondaryToolbar.LayoutToolbarItems(NFloat toolbarWidth, NFloat toolbarHeight, NFloat padding)
at Microsoft.Maui.Controls.Handlers.Compatibility.NavigationRenderer.SecondaryToolbar.LayoutSubviews()
at UIKit.UIApplication.UIApplicationMain(Int32 argc, String\[\] argv, IntPtr principalClassName, IntPtr delegateClassName)
at UIKit.UIApplication.Main(String\[\] args, Type principalClass, Type delegateClass)
at MAUISample.Program.Main(String\[\] args) in ...MAUISampleProject}
Does anyone know how to fix it or what I might be doing wrong ?
Greetings Matlas
I also tried to open the pdf file through UIDocumentInteractionController. The problem looks the same the file opens but the same error is thrown.