private void InitSpinner() { if (_spinner != null) { return; } _spinner = new UISpinnerView(_rootView.Frame); _rootView.AddSubview(_spinner); }
private void InitSpinner() { if (_spinner != null) { return; } _spinner = new UISpinnerView(UIScreen.MainScreen.Bounds); UIApplication.SharedApplication.KeyWindow.InvokeOnMainThread(() => { UIApplication.SharedApplication.KeyWindow.AddSubview(_spinner); UIApplication.SharedApplication.KeyWindow.BringSubviewToFront(_spinner); }); }