addsubview在功能上的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。
指該視頻https://www.youtube.com/watch?v=5ibVlOx2o7I –