-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
    if(fromInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || fromInterfaceOrientation == UIInterfaceOrientationLandscapeRight)
    {
       
    }

     if (self.interfaceOrientation == UIDeviceOrientationPortrait){

        NSLog(@"竖直");

    }

    elseif(self.interfaceOrientation == UIDeviceOrientationLandscapeLeft)

    {

        NSLog(@"水平向左");

    }

    elseif(self.interfaceOrientation == UIDeviceOrientationLandscapeLeft)

    {

        NSLog(@"水平向左");

    }

}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-10-19
相关资源
相似解决方案