Tuesday, 16 April 2013

Static landscape orientation




- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
    
    if(toInterfaceOrientation == 1 || toInterfaceOrientation == 2)
    {
        return NO;
    }
    else
        return UIInterfaceOrientationMaskLandscape;
    
}