Panorama
//Return YES if current orientation is landscape
+ (BOOL) isOrientationLandscape
{
if (UIDeviceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])){
return YES;
}else{
return NO;
}
}
Retrato
//Return YES if current orientation is portrait
+ (BOOL) isOrientationPortrait
{
if (UIDeviceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])){
return YES;
}else{
return NO;
}
}