The code below is example which toggles view which covers status bar.
ruby>>
import UIKit
class
ViewController: UIViewController {
var uWindow: UIWindow!
@IBAction func
Do( AnyObject! ) {
if uWindow {
uWindow = nil
} else {
uWindow = UIWindow( frame: UIApplication.sharedApplication().statusBarFrame )
uWindow.backgroundColor = UIColor( white:0, alpha:0.5 )
uWindow.windowLevel = UIWindowLevelStatusBar + 1
uWindow.hidden = false;
}
}
}
<<--
posted by
Saturn on Mon 4 Aug 2014 at 18:25 with 0 comments