iphone - ios--When the system displays high-quality pictures -
in app, using iphone 6 simulator , xcode 4.6. i've added background imageview app, here have 2 pictures, mypic.png(320*480) , mypic@2x.png(640*960), system displays mypic.png pictures when system displays high-quality pictures. can tell me,thanks!
when run project on retina display display 2x image instead small image. , have write code this.
uiimageview * imageview = [[uiimageview alloc] initwithframe:cgrectmake(270, 17, 30, 30)]; imageview.image = [uiimage imagenamed:@"mypic"];
dont write extension of image display image according screen.
Comments
Post a Comment