跳到主要內容

發表文章

目前顯示的是 10月, 2016的文章

IOS APP 在APP開起畫面隱藏 status bar 及 在APP中修改 StatusBarStyle,手動開啟或關閉單一畫面StatusBar

1.隱藏status bar 開啟Info.plist 檔案修改條件,此項目只會關閉開起畫面時隱藏status bar 下圖為我APP開啓時的畫面(LaunchScreen.storyboard), 左邊為顯示為開啟時,右邊為隱藏時 2.修改 StatusBarStyle 假使要修改 StatusBarStyle,有兩種預設值可以選 在.swfit中加入     override var preferredStatusBarStyle: UIStatusBarStyle {          return . lightContent     }     override var preferredStatusBarStyle: UIStatusBarStyle {          return . default     } 3.手動開啟或關閉單一畫面StatusBar 在欲變動之ViewController.swift 內新增       override var prefersStatusBarHidden: Bool {          return false // true      }

ios this iphone 7 plus is running ios which may not be supported by this version of Xcode--解決辦法

ios this iphone 7 plus is running ios which may not be supported by this version of Xcode 這幾天,iphone更新了IOS10.1,今天要繼續作業時卻出現了,“this iphone 7 plus is running ios which may not be supported by this version of Xcode”,去app store尚未釋出新版8.1版本,轉向去APPLE開發者網頁,下載https://developer.apple.com/download/ Xcode 8.1 GM seed版本,於是在這簡單紀錄下~