public void ShowLoading() { if (_isBusy) { return; } //var currenWindow = UIApplication.SharedApplication.KeyWindow; if (loadingView == null) { loadingView = LoadingView.Create(); loadingView.ConfigureView(View.Frame); View.Add(loadingView); //loadingView.ConfigureView(currenWindow.Frame); //currenWindow.Add(loadingView); } else if (!View.Subviews.Contains <UIView>(loadingView)) { View.Add(loadingView); } else { View.BringSubviewToFront(loadingView); } /*else if (!currenWindow.Subviews.Contains<UIView>(loadingView)) * { * currenWindow.Add(loadingView); * } * else * { * currenWindow.BringSubviewToFront(loadingView); * }*/ loadingView.StartAnimation(); _isBusy = true; }