zoukankan      html  css  js  c++  java
  • iOS开发 点击某处横屏竖屏切换

    typedef NS_ENUM(NSInteger, UIInterfaceOrientation) {

        UIInterfaceOrientationUnknown            = UIDeviceOrientationUnknown,

        UIInterfaceOrientationPortrait           = UIDeviceOrientationPortrait,

        UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,

        UIInterfaceOrientationLandscapeLeft      = UIDeviceOrientationLandscapeRight,

        UIInterfaceOrientationLandscapeRight     = UIDeviceOrientationLandscapeLeft

    } __TVOS_PROHIBITED;

    [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight];

      [self orientationChange:YES];

  • 相关阅读:
    XML
    DAO
    JDBC
    事物、视图、索引、备份和恢复
    用户
    高级查询2
    高级查询1
    数据库设计
    初识MySQL
    古代和现在的区别Hashtable和HashMap
  • 原文地址:https://www.cnblogs.com/diweinan/p/6233016.html
Copyright © 2011-2022 走看看