I want to use my own icon for UIBarButtonItem

Asked 2 years ago, Updated 2 years ago, 54 views

I'd like to put my own image in UITabBarButtonItem, but if you set the png image,
The 32*32 image is just the right size, but the image quality gets rough.
However, if you set the 64*64 image, it is too big to use.
I looked it up and found a similar article, and it seems that it can be done by setting up a PDF. (The link could not be attached)
I tried to write a PDF in Illustrator and set it up.
When PDF is set
It gets bigger like this
How can I set the image to display a beautiful icon on the UITabBarButtonItem?

swift ios objective-c xcode

2022-09-30 16:16

1 Answers

When creating a new document with Illustrator, wouldn't it be better to set the canvas size to 32x32 pixels?Did you notice that the current check.pdf image size is 128 x 128 pixels?


2022-09-30 16:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.