I'm using Storyboard and I created a UIButton with a custom image.
I have a problem that the edges of the button are pixelated:
Image:

Any idea? Thank you!
3 Ways to create this button.
Add all assets like @1x, @2x and @3x in the folder.
You can prepare assets by using Prepo or a tool for Xcode RTImageAssets Or any-other tool that fits your requirement.
Use vector image as asset. Article : Use of vectors in Xcode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With