I have a separate loadingview with a couple of progressbars that I've put on my Storyboard and it doesn't have any segues to/from it since I open it programmatically after user presses a button and several checks are made.
Globals.LoadingView = (LoadingViewController)Storyboard.InstantiateViewController("loadingViewID");
Globals.LoadingView.ModalPresentationStyle = UIModalPresentationStyle.FormSheet;
to initialize it, then
this.PresentViewController(Globals.LoadingView, true, () =>
in my main view controller to show it.
Previously, it worked just fine, but after an update all the LoadingViewController's UI elements (labels, buttons, progressbars) are null, and a null-reference exception is thrown when I try to update progress state (unsurprisingly).
Has anyone encountered something similar? Or maybe some ideas about why does this happen and how to fix it?