Add a progress bar to the navigation bar

I am developing an application for the iPhone and I want to show the progress bar of the file download in the top navigation bar, for example, in the status bar of sending iPhone SMS messages. How can i do this?

+4
source share
2 answers

Pretty easy, just get the link to the UIView that you want to place in the panel and call addSubview :

 UIView progressBar = ...; [navigationController.navigationBar addSubview:progressBar]; progressBar.frame = CGRectMake( ... ); // Position it 
+6
source

It would be better to create a progress bar and post it here.

 self.navigationItem.titleView = progressBar; 
+2
source

All Articles