Forzar la rotación de una app
//En appdelegate.m
//El proyecto debe tener habilitado el full screen
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
#else
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
#endif
{
if ([[Call5Controller sharedInstance] currentUser] == nil) {
return UIInterfaceOrientationMaskAll;
}else{
switch ([[[[Call5Controller sharedInstance] currentUser] configWithName:kUserConfigRotationLock] intValue]) {
case 1: return UIInterfaceOrientationMaskLandscapeLeft;
case 2: return UIInterfaceOrientationMaskPortrait;
default: return UIInterfaceOrientationMaskAll;
}
}
}