Swift에서 UIWindow 경계를 간단하게 변경하려고했습니다.Swift에서 UIWindow 속성을 설정하는 방법
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
}
을하지만 난 얻을 : 지금까지 나는이
UIWindow 각 self.window.property 세터 라인에서 이름이 회원이 없습니다.
와우! 그리고 스위프트는 코딩을보다 효율적으로 만들어야한다고 생각했습니다. 감사! – marciokoko