How Do I Enable UpsideDownPortrait?

Joined
Oct 11, 2011
Messages
46
Reaction score
0
Points
6
Your Mac's Specs
13" MacBook Pro 2.4 GHz 8 GB Ram 250 GB HD, iPhone 4/S 64 GB, iPhone 3GS 16 GB, iPad 16 GB Wi-Fi
heres the code, how do i enable all modes portrait and landscape. i messed with it before but i can't seem to get it back to default





- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
First, when posting code, wrap it with the CODE tag. It will eliminate that sad face I'm seeing.

Second, read the documentation. What does it say about the value, interfaceOrientation, being passed into the method? What does it say about the value you are returning?

Third, for your return statement, do you think the NOT equation makes sense given that is the orientation you want to say YES to?

Forth, to support some other orientations, you'll have to combine the extra evaluations with ORs.
 
OP
L
Joined
Oct 11, 2011
Messages
46
Reaction score
0
Points
6
Your Mac's Specs
13" MacBook Pro 2.4 GHz 8 GB Ram 250 GB HD, iPhone 4/S 64 GB, iPhone 3GS 16 GB, iPad 16 GB Wi-Fi
First, when posting code, wrap it with the CODE tag. It will eliminate that sad face I'm seeing.

Second, read the documentation. What does it say about the value, interfaceOrientation, being passed into the method? What does it say about the value you are returning?

Third, for your return statement, do you think the NOT equation makes sense given that is the orientation you want to say YES to?

Forth, to support some other orientations, you'll have to combine the extra evaluations with ORs.



will put it in code tag, new to programming and other forums don't have a "code" so didn't know.

but thanks for your help. it was a noob mistake, my app was a tab based app, and i forgot it to put it in my other .m file.

lol i spend the whole day trying to figure this out (plus other stuff)
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
lol i spend the whole day trying to figure this out (plus other stuff)

It won't be last time. Especially at the beginning.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top