I used inputs from this SO Question to create a custom progress-bar with rounded corners for the Android
platform using the Drawable
.
But the I'm not able to create the same output for the iOS
.
Given below is how it looks on Android
.
How can I create the same effect in the iOS
as well?
There are a number of ways to do this, I prefer using the
CALayer
of aUIView
and adding aCAShapeLayer
that draws the "progress bar".UIView ProgressBar Example:
Usage Example: