Quiero hacer mi aplicación solo en orientación horizontal en ios (tanto ios 5 como ios 6)

He usado el Xcode 4.5.1 y uso estas condiciones

#define IOS_OLDER_THAN_6 ( [ [ [ UIDevice currentDevice ] systemVersion ] floatValue ] < 6.0 )
#define IOS_NEWER_OR_EQUAL_TO_6 ( [ [ [ UIDevice currentDevice ] systemVersion ] floatValue ] >= 6.0 )


#ifdef IOS_OLDER_THAN_6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
    [image_signature setImage:[self resizeImage:image_signature.image]];
    return (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
#endif
#ifdef IOS_NEWER_OR_EQUAL_TO_6
-(BOOL)shouldAutorotate {
    return YES;
}
- (NSUInteger)supportedInterfaceOrientations {
    [image_signature setImage:[self resizeImage:image_signature.image]];
    return UIInterfaceOrientationMaskLandscapeLeft;
}
#endif

He añadido la clave en info.plist.

<key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationLandscapeRight</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
    </array>

Y configurar la orientación de la interfaz de soporte.

SI tengo que agregar la clave en info.plist y configurar la orientación de soporte y no usar el siguiente código, la aplicación no funciona en iOS 5.0

Este código es un trabajo, pero quiero usar un pequeño concepto alternativo ... Por favor, ayúdame ...

¡¡Gracias por adelantado!!

Respuestas a la pregunta(4)

Su respuesta a la pregunta