2012-11-30 87 views
0

我有一個UITableView和RowSelected我想顯示加載動畫,然後加載其他的ViewController:Monotouch:如何在等待下一個UIViewController加載時顯示加載動畫?

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(); 
} 

然而,加載動畫只出現第二次之後的下一個視圖 - 控制已加載的分裂。

如何顯示加載動畫,然後等待下一個視圖控制器加載並再次隱藏它?

回答

2

坦尼斯, 使LoadingView單,並把LoadingView.Instance.Hide();ViewDidAppearSpecScreen視圖 - 控制。

+0

太好了,我會試一試謝謝! –

相關問題