Create new UIImage by adding shadow to existing UIImage
- by Tom Irving
I've taken a look at this question: http://stackoverflow.com/questions/962827/uiimage-shadow
But the accepted answer didn't work for me.
What I'm trying to do is take a UIImage and add a shadow to it, then return a whole new UIImage, shadow and all.
This is what I'm trying:
- (UIImage*)imageWithShadow {
CGColorSpaceRef colourSpace =…