I am using the overlay code from here - http://docs.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message
It worked all fine..., I was able to call View.Add(loadingOverlay)
...until I changed things to MonoTouch.Dialog and it doesn't work anymore.
public partial class BaseView : UIViewController
{
LoadingOverlay loadingOverlay;
public void ProgressDialogShow(string message, string title)
{
loadingOverlay = new LoadingOverlay(message, UIScreen.MainScreen.Bounds);
View.Add(loadingOverlay);
}
}
And the View itself (the LoginView) is inheriting from BaseView.
[Register("SecondLoginView")]
public class SecondLoginView : BaseView
{
public override void ViewDidLoad()
{
base.ViewDidLoad();
window = new UIWindow(UIScreen.MainScreen.Bounds);
root = new RootElement("Login") {
new Section() {
new EntryElement ("Benutzer", "Login", "Test")
}
};
rootVC = new DialogViewController(root);
nav = new UINavigationController(rootVC);
window.RootViewController = nav;
window.MakeKeyAndVisible();
}
}
In that case, the Loadingoverlay is not showing up. How can I still use it with MonoTouch.Dialog?
Any help appreciated!