zoukankan      html  css  js  c++  java
  • 关于强制竖屏变横屏

    #import "CustomNavigationController.h"

    @interface CustomNavigationController ()

    @end

    @implementation CustomNavigationController

    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
    {
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {

        }
        return self;
    }

    - (void)viewDidLoad
    {
        [super viewDidLoad];
        // Do any additional setup after loading the view.
    }

    - (void)didReceiveMemoryWarning
    {
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    }


    - (BOOL)shouldAutorotate

    {

        return NO;

    }

    - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation

    {

        return UIInterfaceOrientationLandscapeRight;

    }

    -(NSUInteger)supportedInterfaceOrientations{

        return UIInterfaceOrientationMaskLandscapeRight;

    }

  • 相关阅读:
    [NOIP2011] 玛雅游戏
    [bzoj4025] 二分图
    [10.2模拟] tree
    [10.3模拟] color
    [10.2模拟] teach
    [10.2模拟] plan
    [10.2模拟] book
    [bzoj4999] This Problem Is Too Simple!
    [9.28模拟] good
    [bzoj3884] 上帝与集合的正确用法
  • 原文地址:https://www.cnblogs.com/dbaiyunyun/p/5569446.html
Copyright © 2011-2022 走看看