2013-08-19 248 views

回答

2

簡單添加一個單獨的視圖中的廈門國際銀行,類似圖像下面

enter image description here

而創建的所有組件的IBOutlet中,然後你可以這樣做下面

self.navigationItem.titleView=self.progressView; //progressView IBOutlet of the container view progressView 

in viewDidLoad

那麼你可以創建一個像

-(void)showProgress{ 
    [email protected]"Updating..."; 
    [self.indicator startAnimating]; 
} 

-(void)hideProgress{ 
    [email protected]"Updated"; 
    [self.indicator stopAnimating]; 
} 

功能確保您使視圖背景顏色clearColor,使指示器hideWhenStopped

希望它有幫助。