Discussion Forums  >  Images, Documents, File Locations

Replies: 3    Views: 667

Sherry
Lost but trying
Profile
Posts: 131
Reg: Jan 05, 2013
South Africa
11,610
05/30/14 03:55 AM (7 years ago)

Change background image based on orientation

I am developing an ios app now and android later which is designed primarily for landscape orientation. It has about 100 background images which I've set to top right because the company logo has to appear in that position. I can lock the app because the landscape sized backgrounds look weird on portrait but wanted to know if there is a way to tell xcode "If device is landscape use picture A for this screen but if the device is portrait use picture B and I'll create separate portrait backgrounds that are sized to fit if this can be done.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/30/14 10:46 AM (7 years ago)
Congratulations Sherry you have won a tutorial http://kittsy.co.uk/change-background-image-based-on-orientation/
 
Sherry
Lost but trying
Profile
Posts: 131
Reg: Jan 05, 2013
South Africa
11,610
like
05/30/14 11:24 AM (7 years ago)
WHOO HOO, Kittsy you're the best!!!!! Thanks so much
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/30/14 11:40 AM (7 years ago)
No problems, I'm happiest most when I'm giving back to the community.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.