Xamarin.ios Monotouch:在等待下一个UIViewController加载时,如何显示加载动画?
我有一个UITableView,在选定的行上,我想显示正在加载的动画,然后加载另一个ViewController:Xamarin.ios Monotouch:在等待下一个UIViewController加载时,如何显示加载动画?,xamarin.ios,loading,pushviewcontroller,Xamarin.ios,Loading,Pushviewcontroller,我有一个UITableView,在选定的行上,我想显示正在加载的动画,然后加载另一个ViewController: public override void RowSelected (UITableView tableView, NSIndexPath indexPath) { LoadingView LV = new LoadingView(); LV.Show("Loading..."); specScreen = new SpecScreen(); cont
public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
{
LoadingView LV = new LoadingView();
LV.Show("Loading...");
specScreen = new SpecScreen();
controller.NavigationController.PushViewController(specScreen, true);
LV.Hide();
}
但是,加载动画仅在加载下一个viewcontroller后的一瞬间出现
如何显示正在加载的动画,然后等待下一个视图控制器再次加载并隐藏它?Tanis,
使LoadingView
singleton并放置LoadingView.Instance.Hide()代码>到viewdi出现在SpecScreen
viewcontroller中