iphone - Interface Builder and universal app images -


i have universal app , have made xibs can work iphone or ipad. getting memory warnings because uiimages big. there way name image files when running on ipad use ipad images , when on iphone use iphone ones?

update: easy.

  • iphone : image.png
  • iphone 4 : image@2x.png
  • ipad : image~ipad.png

i wonder if work if render images on device , store them locally?

i hope this might give hint

i use images name button.png , button@2x.png , make call using

 [uiimage imagesnamed:@"button.png"]; 

this loads correct image on device according resolution of device, iphone3g, iphone4 , ipad. in update have taken s separate image ipad, doubt same image i.e button.png work.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -