Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIButton custom retina image stretched in iPad Retina Display

I have one issue with iPad retina image. When i was executing my add in normal ipad it looks great.

But when I am executing this app in iPad Retina then UIButton custom images is stretched upwards.

Also I added images for "@2x" icon images for retina mode.

Using this code:

UIButton *btnEye=[[UIButton alloc] initWithFrame:CGRectMake(10, 5.5, 35, 35)];
[btnEye setImage:eyeImage forState:UIControlStateNormal];
[reportToolbar addSubview:btnEye];

In Normal Mode :

enter image description here

In Reitna Mode:

enter image description here

like image 378
Amit Bobade Avatar asked Nov 26 '22 10:11

Amit Bobade


1 Answers

Are the retina images really having double resolution than normal or it has the same resolution as the normal one?

like image 150
Exploring Avatar answered Dec 06 '22 23:12

Exploring