LandscapeView To PortraitView

- (BOOL) shouldAutorotateToInterfaceOrientation:UIInterfaceOrientation) interfaceOrientation  
{
    if (interfaceOrientation == UIInterfaceOrientationPortrait)
        return NO;
    if (interfaceOrientation == UIInterfaceOrientationLandscapeRight 
            || interfaceOrientation == UIInterfaceOrientationLandscapeLeft )
        return YES; 
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

0 comments:

Post a Comment