| | |
| | | override func viewDidLoad() { |
| | | super.viewDidLoad() |
| | | |
| | | // let bgGradientImg = UIImageView(image: UIImage.jq_gradient(["#B6E0FF","#FFFFFF"],size: CGSize(width: JQ_ScreenW, height: JQ_ScreenH), direction: .vertical)) |
| | | // |
| | | // view.addSubview(bgGradientImg) |
| | | // bgGradientImg.snp.makeConstraints { make in |
| | | // make.top.left.right.equalToSuperview() |
| | | // make.height.equalTo(JQ_ScreenW * 0.46) |
| | | // } |
| | | // view.sendSubviewToBack(bgGradientImg) |
| | | // view.backgroundColor = .white |
| | | |
| | | disposeBag = DisposeBag() |
| | | setUI() |
| | |
| | | navigationItem.leftBarButtonItem = UIBarButtonItem(customView: backButton) |
| | | } |
| | | |
| | | if !self.isKind(of: HomeVC.self) && !self.isKind(of: HomeListenSubVC.self) && !self.isKind(of: HomeListenFight_lesson_1_VC.self) && !self.isKind(of: HomeListenFight_lesson_2_VC.self) && !self.isKind(of: HomeListenFight_lesson_3_VC.self) && !self.isKind(of: HomeListenFight_lesson_4_VC.self) && !self.isKind(of: HomeListenFight_lesson_5_VC.self) && !self.isKind(of: HomeListenGame_1_VC.self) && !self.isKind(of: HomeListenGame_2_VC.self) && !self.isKind(of: HomeListenStory_1_VC.self) && !self.isKind(of: HomeListenStory_2_VC.self){ |
| | | if !self.isKind(of: HomeVC.self) && !self.isKind(of: HomeListenSubVC.self) && !self.isKind(of: HomeListenFight_lesson_1_VC.self) && !self.isKind(of: HomeListenFight_lesson_2_VC.self) && !self.isKind(of: HomeListenFight_lesson_3_VC.self) && !self.isKind(of: HomeListenFight_lesson_4_VC.self) && !self.isKind(of: HomeListenFight_lesson_5_VC.self) && !self.isKind(of: HomeListenGame_1_VC.self) && !self.isKind(of: HomeListenGame_2_VC.self) && !self.isKind(of: HomeListenStory_1_VC.self) && !self.isKind(of: HomeListenStory_2_VC.self) && !self.isKind(of: LoginVC.self){ |
| | | let titleV = UIView() |
| | | titleV.bounds = CGRect(x: 0, y: 0, width: 156, height: 63) |
| | | // titleV.bounds = CGRect(x: 0, y: 0, width: 156, height: 24) |
| | | titleV.sizeToFit() |
| | | let imgV = UIImageView(image: UIImage(named: "bg_logo")) |
| | | imgV.contentMode = .scaleAspectFit |
| | |
| | | |
| | | view.addSubview(titleV) |
| | | titleV.snp.makeConstraints { make in |
| | | make.top.equalToSuperview().offset(18) |
| | | make.centerX.equalToSuperview() |
| | | make.center.equalToSuperview() |
| | | } |
| | | |
| | | navigationItem.titleView = titleV |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | func setRx(){ |