2013-08-19 251 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

希望它有帮助。