Create new UIImage by adding shadow to existing UIImage

后端 未结 8 842
半阙折子戏
半阙折子戏 2020-12-08 23:15

I\'ve taken a look at this question: UIImage Shadow Trouble

But the accepted answer didn\'t work for me.

What I\'m trying to do is take a UIImage and add a s

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 23:52

    To make an image a CGImage as in this case , try

    self.shadowImage.CGImage
    

提交回复
热议问题