【发布时间】:2015-04-24 09:21:12
【问题描述】:
在函数 Appdelegate - didFinishLaunchingWithOptions 中实现:
var testView : UIView = UIView(frame: CGRectMake(100, 100, 100, 100))
testView.backgroundColor = UIColor.blueColor()
self.window?.addSubview(testView)
self.window?.bringSubviewToFront(testView)
self.window?.makeKeyAndVisible()
但不显示 testView。
【问题讨论】:
标签: swift window appdelegate addsubview