Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS tab bar icons are blurry

Tags:

ios

tabbar

My tab bar icons appear blurry.

enter image description here

I created the icons using Photoshop, and followed the iOS Human Interface Guidelines when I decided the sizes of each icons.

e.g. icon size: 30x30px png

This only happens with the tab bar. I wonder if this happens because of the resolution of the images or because of programming issues...

like image 849
supermonkey Avatar asked Sep 16 '15 03:09

supermonkey


2 Answers

You're using icon size 30x30 which I assume is for 1x (iPhone<4). Since iPhone>=4 needs 2x and 3x images so you have to include that also.

Either you use images with naming conventions like

star.png     // 1x = 30x30
[email protected]  // 2x = 60x60
[email protected]  // 3x = 90x90

or you can use image.xcassets and put your 1x, 2x and 3x images there and use it.

Reference Xcode Assets Catalogs

like image 67
Inder Kumar Rathore Avatar answered Sep 30 '22 20:09

Inder Kumar Rathore


Probably because using a device with the retina screen.

Try about changing the icon's filename to [email protected] like "[email protected]".

like image 38
jojoT Avatar answered Sep 30 '22 21:09

jojoT