user5331311
user5331311

Reputation:

UILabel looks pixelated with shadow

You can see in the picture, that the label inside of the view with the shadow looks pixelated (also the UIButton) and the other one outside this shadow UIView looks normal. How can I remove this pixelated effect?

The pixelated label and button

Thanks for your awnsers!

Upvotes: 0

Views: 464

Answers (1)

Jagdeep
Jagdeep

Reputation: 1178

Make sure you have not set shouldRasterize property; if so, then try unsetting it.
From Apple Documentation:

should​Rasterize
A Boolean that indicates whether the layer is rendered as a bitmap before compositing.

which may have turned your label to pixelated.

Hope it will help.

Upvotes: 6

Related Questions