Re-size image on ipad...

Discussion in 'iOS Programming' started by hodgey87, Oct 17, 2010.

  1. hodgey87 Guest

    Joined:
    Mar 20, 2009
    #1
    Hi guys,

    Just a quick one, is there a way you can re size a background image on the ipad. The image fits fine in landscape mode but if you turn it to portrait theres a little gap at the top. Ive searched and cant really find anything relevant to what im after.

    Cheers
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    If the image is in an image view just set the frame of the imageview, or let be set automatically with the autoresizeMask. The imageview will scale the image to fit. If your image becomes too distorted you'll have to make an adjustment of some kind but the imageview will automatically scale its contents for you. You might want to make the image 1024 by 1024 and not let it scale. The contentMode controls how the scaling is done.
     
  3. hodgey87 thread starter Guest

    Joined:
    Mar 20, 2009
    #3
    The image is already 1024 x 1024, its just on that portrait view the image is slight off. Ive tried setting the framesize and the autoresize mask but cant get it working.
     

Share This Page