Quote:
Originally Posted by jlerma1
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)shouldAutorotateToInterfaceOrientation

UIIn terfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
}
I am glad I found the answer!
J