InterfaceOrientation method is got deprecated in ios6. So that if you want your orientation supported by both ios5 & ios6, you have to write two extra methods for ios6 along with
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// your customisation will go here
}
Two extra methods for ios6
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
// your customisation will go here
}
Enjoy Programming!