The UIProgressView by default has rounded corners
.
How can I get rid of those rounded corners
? I wish to have a standard rectangle view
.
I have tried progressView.layer.cornerRadius = 0;
, but no use.
You have to subclass UIProgressView
and override drawRect
.
EDIT 08/31/2016:
Come on: This one is from 2012, the Question is closed, iOS had a few updates and so had the SDK and the ProgressView API, we're (hopefully) using swift now ... and yes: The link is broken. So, feel free to downvote this one, but ask yourself, if a non-broken link would really solve your problem.