How to disable autorotation for a background image...

Discussion in 'iOS Programming' started by zeroskillz, Feb 25, 2011.

  1. zeroskillz macrumors newbie

    Joined:
    Apr 13, 2010
    #1
    Howdy, simple question:
    I have a background image for my app that I don't want to rotate with auto-rotation, but I do want everything else on screen to auto-rotate.

    Best I can see to do is put the background image in its own view and set that not to auto-rotate, but that seems like alot of effort for something that I would expect could be set as a property on an object somewhere...

    Thanks in advance!
     
  2. MaxFreud macrumors newbie

    Joined:
    Jan 5, 2011
    #2
    Can't you just create a rotated version of the image and change the background image to that when rotation occurs?
     
  3. zeroskillz thread starter macrumors newbie

    Joined:
    Apr 13, 2010
    #3
    That's what I had done originally, just created both versions, and would hide/show whichever was required, but that seems so ghetto.

    My concern is that it doubles the memory the background image would use were it only a single image...
     
  4. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4

Share This Page