• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

The code below is example which toggles view which covers status bar.

   1  import UIKit
   2  
   3  class
   4  ViewController: UIViewController {
   5  
   6  	var	uWindow:	UIWindow!
   7  	
   8  	@IBAction	func
   9  	Do( AnyObject! ) {
  10  		if uWindow {
  11  			uWindow = nil
  12  		} else {
  13  			uWindow = UIWindow( frame: UIApplication.sharedApplication().statusBarFrame )
  14  			uWindow.backgroundColor = UIColor( white:0, alpha:0.5 )
  15  			uWindow.windowLevel = UIWindowLevelStatusBar + 1
  16  			uWindow.hidden = false;
  17  		}
  18  	}
  19  }
  20  

posted by Face Saturn on Mon 4 Aug 2014 at 18:25

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry2372
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ