view controller在storyBoard中有srollView,我将它嵌入导航控制器并通过self.scrollView.addSubview((V1?.view)!)
方法将视图控制器添加到scrollView,问题是我无法更改导航控制器属性,项目,颜色和其他东西,我无法以编程方式或在storyBoard中更改它的剂量,但我无法改变任何东西,即使它有深灰色,普通导航控制器也有浅灰色
override func viewWillAppear(_ animated: Bool) {
let V1 = self.storyboard?.instantiateViewController(withIdentifier: "Broadcast") as UIViewController!
self.addChildViewController(V1!)
self.scrollView.addSubview((V1?.view)!)
V1?.didMove(toParentViewController: self)
V1?.view.frame = scrollView.bounds
self.scrollView.contentSize = CGSize(width: self.view.frame.width, height: self.view.frame.height)
self.scrollView.contentOffset = CGPoint(x: self.view.frame.width * 1 , y: self.view.frame.height)
}