//
//  RootTabBarController.swift
//  SwiftProject
//
//  Created by soldoros on 2024/1/10.
//

import UIKit
//import Alamofire

class RootTabBarController: UITabBarController {
    
    override var childForStatusBarStyle: UIViewController?{
        return self.selectedViewController
    }
    
    override var childForStatusBarHidden: UIViewController?{
        return self.selectedViewController
    }

    override func viewDidLoad() {
        super.viewDidLoad()
//        self.view.backgroundColor = UIColor.red
//        self.tabBar.backgroundColor = UIColor.red
        
        
        let vc:CCHomeController = CCHomeController.init(isRoot: true, titleString: "首页")
        let nav:RootNavigationController = RootNavigationController.init(rootViewController: vc)
        self.viewControllers = [nav]
    }
    
//    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
//
//        let dic = ["mobile":"13540033103","pwd":"aaaa1111"]
//        CCRequest.requset(method: .post, dic: dic, urlString: URLLogin, header: [:]) { res in
//            if(res.error != nil){
//                print("网络或服务器异常")
//            }else{
//                let dic = NSString.makeDictionaryWithJson(string: res.value!)
//                debugPrint(dic)
//                if(dic["code"].debugDescription.elementsEqual("200")){
//                    print(dic["msg"] as! String)
//                }
//                else{
//                    print(dic["msg"] as! String)
//                }
//            }
//        }
//    }
    

}
