So in cocos2d (I believe I was on v2.1) I did this to lock and set the orientations:
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplica
After a couple days fooling around I figured out a solution:
in AppDelegate I needed this function:
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
if (!self.lockedToOrientation) {
if( [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone ){
return UIInterfaceOrientationMaskPortrait;
}
return UIInterfaceOrientationMaskPortrait;
}
else {
return self.lockedToOrientation;
}
}
Where
@property UIInterfaceOrientationMask lockedToOrientation;
Hope this helps someone!
Cheers.