What's the difference between adding a viewcontroller
's view inside another view controller
's view and embedding a view controller like this:
addChildViewController(controller)
self.view.addSubview(controller.view)
controller.view.frame = view.bounds
controller.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
controller.didMove(toParentViewController: self)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…