Commit 5436b430 authored by DavidHuang's avatar DavidHuang

修改 一处bug

parent 384db1bc
...@@ -266,7 +266,8 @@ class YHLivePlayerViewController: YHBasePlayerViewController { ...@@ -266,7 +266,8 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
private func setupStateViewController() { private func setupStateViewController() {
isLiveStateOn = true isLiveStateOn = true
// 1. 添加子控制器 // 1. 添加子控制器
// addChild(liveStateVC) addChild(liveStateVC)
liveStateVC.view.frame = self.view.bounds
view.addSubview(liveStateVC.view) view.addSubview(liveStateVC.view)
view.bringSubviewToFront(liveStateVC.view) view.bringSubviewToFront(liveStateVC.view)
// 2. 使用SnapKit设置约束 // 2. 使用SnapKit设置约束
......
...@@ -68,6 +68,7 @@ class YHLiveStateViewController: YHBaseViewController { ...@@ -68,6 +68,7 @@ class YHLiveStateViewController: YHBaseViewController {
} }
func setView() { func setView() {
gk_navigationBar.isHidden = true
view.backgroundColor = .black view.backgroundColor = .black
bgLogoImageView = { bgLogoImageView = {
let view = UIImageView(frame: view.bounds) let view = UIImageView(frame: view.bounds)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment