public override void ViewDidLoad() { base.ViewDidLoad(); _spinner = StyleUtil.ShowSpinner(View, AppDelegate.ShouldOperateIn12_5Mode ? UIActivityIndicatorViewStyle.WhiteLarge : UIActivityIndicatorViewStyle.Large); }
async void SetupTableView() { _spinner = StyleUtil.ShowSpinner(View, UIActivityIndicatorViewStyle.WhiteLarge); _countryList = await _viewModel.GetListOfCountriesAsync(); if (!_countryList.Any()) { _spinner?.RemoveFromSuperview(); OnServerError(); return; } InvokeOnMainThread(() => { TableViewHeightConstraint.Constant = _countryList.Count * CountryTableCell.ROW_HEIGHT; _spinner?.RemoveFromSuperview(); CountryTableView.RegisterNibForCellReuse(CountryTableCell.Nib, CountryTableCell.Key); CountryTableView.Source = new CountryTableViewSource(_countryList); CountryTableView.ReloadData(); }); }
public override void ViewDidLoad() { base.ViewDidLoad(); _spinner = StyleUtil.ShowSpinner(View, UIActivityIndicatorViewStyle.Large); }