I created a button on top of my mapView. In order to make that Button more visible I added a blur view below that button. I don't like the sharp edges of my blur view. How do I make the blur fade out slowly transitioning into the mapView?
EDIT: To be more specific. I mean a fading blurred gradient with round corners.
I think this can help you, first you need subclass your button and add this code in
drawRect
and replaceUIColor.blueColor().CGColor
byyourColor.CGColor
I Hope this helps you.
and this is how it look
Have you tried the
cornerRadius
property? That should remove the sharp edges