IPhone 4 - Tabbar Icons

How can I set TabBarIcons to a high level so that it looks good on the new iPhone 4?

+3
source share
1 answer

Add the new png resource to the new resolution and add @ 2x to the file name. If you use IB, then it should be selected automatically. If you use -imageNamed: then do not include the .png extension in the image name.

For example: "TabBarIcon.png" will have the file " TabBarIcon@2x.png ", which has dual resolution and will be automatically downloaded by UIKit to iPhone 4.

see here for more information.

+5

Source: https://habr.com/ru/post/1751109/


All Articles