iPhone Simulator still rotating


#1

so i’ve added this code to both implementations, and i can’t find my typo.

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)io { if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { return YES; }else { return (io = UIInterfaceOrientationPortrait); } }

and it’s still rotating the whole way through on both the iphone and the ipad :frowning:
*i should mention that i’m using the 5.1 simulators


#2

You have io = UIInterface…

it needs to be ==


#3

facepalm ack… thanks… i guess the BOOL return should have tipped me off to that