objective c - How to create a progress bar with two colors in iOS? -
i need create progress bar in ios first 90% in white color , rest 10% red. have checked many codes available online.
i need have simple code simple progress bar.
can guide me.
here screenshot:
here steps yourself:
- create view red background. assume width 100 px.
- create view white background above red view.
- to show progress increase width of white view. 1% = 1px
if want width more 100 px progress in width ratio. example
- 320px width: 3.2px = 1%
- 1080px width: 20.16px = 2%
Comments
Post a Comment