zoukankan      html  css  js  c++  java
  • iOS_隐藏顶部状态栏方式

    关键词:IOS、UIViewController、 Status Bar

    iOS6和iOS7在隐藏 Status Bar 三种方式比较:

    Storyboard

    界面上选中UIViewController,最右边Simulated Metrics找到 Status Bar 设定成 None

    ViewController

    iOS 6通过[UIApplication sharedApplication] 取得app的单例,然后调用setStatusBarHidden方法隐藏 Status Bar。

    iOS 7

    Info.plist

    不但要在Info.plist中增加 Status bar is initially hidden一行,选择为 YES,

    还需增加 View controller-based status bar appearance 一行,选择为 NO。

  • 相关阅读:
    md5加密(4)
    生成短的uuid
    九九乘法
    闰年判断
    初识网络传输
    省选模拟77
    省选模拟76
    省选模拟75
    省选模拟74
    省选模拟73
  • 原文地址:https://www.cnblogs.com/wangluochong/p/5553836.html
Copyright © 2011-2022 走看看