Button size gets small in iphone sdk 4.0

I made one application in iphone sdk 3.0 in that I use some buttons in 3.0 button size, but that's fine, but when I use this application in iphone sdk4.0. At this time, the button size becomes small. The same button code works in version 3.0, but not in 4.0. Please, help.

thanks

+4
source share
1 answer

Some code examples will help. In general, for iPhone 4, you simply make the button image doubled in size and add "@ 2x" to the name, this will automatically be used to display Retina. Thus, in your project there will be "button.png" and " button@2x.png ".

0
source

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


All Articles