开发者

thick shadow with no blur on UILabel

开发者 https://www.devze.com 2023-02-23 05:11 出处:网络
I am trying to add a thick shadow to a UILabel, without any blur. In photoshop I would use the \"Spread\" option to make the shadow look like this. It\'s for a comic book themed UI in an app I am deve

I am trying to add a thick shadow to a UILabel, without any blur. In photoshop I would use the "Spread" option to make the shadow look like this. It's for a comic book themed UI in an app I am developing. I cannot use images as the text is dynamic and different for each user.

Here is what I am after (on the left) and here is as far as I have gotten so far with CGShadowWithCo开发者_如何学Pythonlor (on the right):

thick shadow with no blur on UILabel

Anyone know how I can achieve this result?


A quick hack to try would be to have several black UILabels below the white one, each offset slightly.

0

精彩评论

暂无评论...
验证码 换一张
取 消