Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add progress bar in navigation bar

I am developing an iPhone app and want to show a file upload progress bar in the top navigation bar like the iPhone SMS message sending status bar. How can I do this?

like image 284
dvch Avatar asked Feb 28 '23 04:02

dvch


1 Answers

Pretty easy, just get a reference to the UIView that you want to put in the bar, and call addSubview:

UIView progressBar = ...;
[navigationController.navigationBar addSubview:progressBar];
progressBar.frame = CGRectMake( ... ); // Position it
like image 164
Frank Krueger Avatar answered Mar 12 '23 07:03

Frank Krueger