Ive been trying to make a simple change in UIWindow bounds in Swift. So far I have:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions:NSDictionary?) -> Bool { // Override point for customization after application launch. //SHIFT EVERYTHING DOWN - THEN UP IN INDIV VCs IF ios7> var device:UIDevice=UIDevice() var systemVersion:String=device.systemVersion println(systemVersion) //Float(systemVersion) if (systemVersion >= "7.0") { UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: true) self.window.setClipsToBounds = true // --> Member doesnt exist in UIWindow self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height); self.window.bounds = CGRectMake(0,0, self.window.frame.size.width, self.window.frame.size.height); //} let ok = true println("Hello World") return true } but I get:
UIWindow does not have member named at each self.window.property setter line.