Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-10-2011, 11:27 PM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 28
jlerma1 is on a distinguished road
Default 180 degree flip functionality needed in portrait & landscape modes

Hi,

I am a few days away from submitting my app because it is time sensitve and I was reading about people getting rejected because of lack of autorotation.

Well here is the deal for me. My entire app is a series of views with mostly portrait and some landscape views. Right now the views are stationary and they all contain custom artwork. I cannot redraw these items to fit all orientations right now they are stretched when they turn from portrait to landscape.

What I need is for the portrait only views to flip 180 degrees and I need the landscape views to flip 180 degrees.

I looked around and was unable to find exactly what i need. can someone please be a good samaritan and respond with the exact code needed in the .m header in both instances?

have to click all 4 device orientations icons in the summary part of the plist once the code is in place, correct?

A big thanks in advance to any one who can help the little guy out.

Thanks,

Jared
jlerma1 is offline   Reply With Quote
Old 09-11-2011, 12:15 AM   #2 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 28
jlerma1 is on a distinguished road
Default Issue resolved!

Quote:
Originally Posted by jlerma1 View Post
Hi,

I am a few days away from submitting my app because it is time sensitve and I was reading about people getting rejected because of lack of autorotation.

Well here is the deal for me. My entire app is a series of views with mostly portrait and some landscape views. Right now the views are stationary and they all contain custom artwork. I cannot redraw these items to fit all orientations right now they are stretched when they turn from portrait to landscape.

What I need is for the portrait only views to flip 180 degrees and I need the landscape views to flip 180 degrees.

I looked around and was unable to find exactly what i need. can someone please be a good samaritan and respond with the exact code needed in the .m header in both instances?

have to click all 4 device orientations icons in the summary part of the plist once the code is in place, correct?

A big thanks in advance to any one who can help the little guy out.

Thanks,

Jared
I found the code I needed on another website.


- (BOOL)shouldAutorotateToInterfaceOrientationUIIn terfaceOrientation)interfaceOrientation {

return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);


}

I am glad I found the answer!

J
jlerma1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 406
10 members and 396 guests
7twenty7, apatsufas, Eclectic, fiftysixty, JackReidy, teebee74, tim0504, UMAD, yomo710, yuncarl28
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,904
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:02 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0