-(void) setOrientation { UIInterfaceOrientation toOrientation = self.interfaceOrientation; //toOrientation = [[UIDevice currentDevice] orientation];
if (toOrientation == UIInterfaceOrientationLandscapeLeft ||
toOrientation == UIInterfaceOrientationLandscapeRight )
{
}else if(toOrientation == UIInterfaceOrientationPortrait
|| toOrientation == UIInterfaceOrientationPortraitUpsideDown){
}
}
When i am going to move iPad in Landscape position from Portrait position, portrait condition is get executed. Due to this my screen is distorted.