-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { if(fromInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || fromInterfaceOrientation == UIInterfaceOrientationLandscapeRight) { }
if (self.interfaceOrientation == UIDeviceOrientationPortrait){
NSLog(@"竖直");
}
elseif(self.interfaceOrientation == UIDeviceOrientationLandscapeLeft)
{
NSLog(@"水平向左");
}
elseif(self.interfaceOrientation == UIDeviceOrientationLandscapeLeft)
{
NSLog(@"水平向左");
}
}