The code below is example which toggles view which covers status bar.
1 import UIKit 2 3 class 4 ViewController: UIViewCont roller { 5 6 var uWindow: UIWindow! 7 8 @IBAction func 9 Do( AnyObject! ) { 10 if uWindow { 11 uWindow = nil 12 } else { 13 uWindow = UIWindow( frame: UIApplicat ion.sharedAppl ication().statusBarF rame ) 14 uWindow.background Color = UIColor( white:0, alpha:0.5 ) 15 uWindow.windowLeve l = UIWindowLe velStatusB ar + 1 16 uWindow.hidden = false; 17 } 18 } 19 } 20
posted by
Saturn
on Mon 4 Aug 2014
at 18:25