MAFUIProgressView extends the native UIProgressView class with MAF styling capability using the MAFStyling protocol.
UIProgressView* progressview = [[UIProgressView alloc]initWithFrame:CGRectMake(10, 35, 200, 40)]; progressview.progress = 0.5f; [self.view addSubview:progressview]; [progressview release];
<Style Key="LightProgressBar" TargetType="ProgressView" platform="ios"> <Setter Property="progressTintColor" Value="#DDDDDD"/> <Setter Property="trackTintColor" Value="#666666"/> </Style>To change the default SAP style to your custom style, set the mafStyleName property to the key value of your custom style:
progressview.mafStyleName = @"LightProgressBar";
progressTintColor | The color of the filled portion of the progress bar. Colors are defined as RGBA (red, green, blue, alpha). |
trackTintColor | The color of the empty portion of the progress. |