iPhone Simulator still rotating


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


You have io = UIInterface…

it needs to be ==


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