美文网首页
swift代理可以这么写

swift代理可以这么写

作者: 风吹柳絮如花落 | 来源:发表于2018-01-19 17:33 被阅读8次
    
    // MARK: 正式司导点击事件代理方法
    extension HBCUserCenterViewController: HBCGuideCenterHeaderViewDelegate,HBCGuideCenterAlertViewDelegate{
       
        func guideCenterAlertView(alertView: HBCGuideCenterAlertView, jumpWithType: Int) {
           
            guideCenterView.forceNoticeView?.removeFromSuperview()
            jump2ViewController(jumpWithType)
        }
       
        func didChooseIcon(view: HBCGuideCenterHeaderView) {
           
            let myInformationController = MyMeterialViewController()
            myInformationController.hidesBottomBarWhenPushed = true
            navigationController?.pushViewController(myInformationController, animated: true)
        }
       
        func didChooseBalance(view: HBCGuideCenterHeaderView) {
           
            // agencyType = 0 非地接社导游
            if guideCenterModel.agencyType == 0{
               
                // pss
                let withDraw = WithdrawCutomViewController()
                withDraw.agencyType = 0
                withDraw.hidesBottomBarWhenPushed = true
                navigationController?.pushViewController(withDraw, animated: true)
               
            }
           
        }
       
        func didChooseHuangliang(view: HBCGuideCenterHeaderView) {
            let huangliang = HuangliangViewController()
            huangliang.hidesBottomBarWhenPushed = true
            navigationController?.pushViewController(huangliang, animated: true)
        }
       
        func didChoosePunishment(view: HBCGuideCenterHeaderView) {
            let punish = PunishViewController()
            punish.hidesBottomBarWhenPushed = true
            navigationController?.pushViewController(punish, animated: true)
        }
       
        func didChooseOrder(view: HBCGuideCenterHeaderView) {
           
            let commentVC = HBCCommentListViewController()
            commentVC.hidesBottomBarWhenPushed = true
            navigationController?.pushViewController(commentVC, animated: true)
        }
    }
    
    

    相关文章

      网友评论

          本文标题:swift代理可以这么写

          本文链接:https://www.haomeiwen.com/subject/ghzsoxtx.html