1. Problem
Do you want to display a progress bar on the screen ?? Describes the progress of a task. For example, download the entry of an object from a URL.
2.
The progress view is an instance object of uiprogressview. It is initialized by the initialization tool designed for this class. Use initwithprogressviewstyle: This method. The parameters of this method can specify the style of the progress bar. This parameter is of the uipogressviewstyle type and can be the following values:
UiprogressviewstyledefaultThis is the default style.
UiprogressviewstylebarSimilar to uiprogressviewstyledefault, This is a progress view added to the toolbar.
- (void)viewDidLoad{[super viewDidLoad];self.view.backgroundColor = [UIColor whiteColor];self.progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleBar]; self.progressView.center = self.view.center;self.progressView.progress = 0.5f;[self.view addSubview:self.progressView];}
Ui: Use uiprogressview to display the progress bar