Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pixelated UIButton edges

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:

Image

Any idea? Thank you!

like image 433
FS.O Avatar asked Dec 13 '25 02:12

FS.O


1 Answers

3 Ways to create this button.

  1. You can add plus character in the default button. Give the red background and corner radius.
  2. 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.

  3. Use vector image as asset. Article : Use of vectors in Xcode

like image 160
Ashish Kakkad Avatar answered Dec 15 '25 18:12

Ashish Kakkad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!