123456789101112131415161718192021222324252627282930313233343536 |
- //
- // IHGatewayListManager.swift
- // Inhealth
- //
- // Created by weclouds on 2020/4/7.
- // Copyright © 2020 weclouds. All rights reserved.
- //
- import UIKit
- class IHGatewayListManager: NSObject ,IHViewManagerProtocolDelegate{
- lazy var mainView: IHGatewayListView = {
- let mainView = IHGatewayListView()
- mainView.backgroundColor = .red
- // mainView.delegate = self
- return mainView
- }()
- // private var vc = UIViewController()
- private weak var vc : UIViewController?
-
- func bindController(_ vc: UIViewController) {
- self.vc = vc
- createUI()
- }
- func createUI() {
- mainView.frame = CGRect(x: 0, y: 0, width: KSCREENWIDTH, height: KSCREENHEIGHT - KNavBarHeight )
- self.vc?.view.addSubview(mainView)
- IHGatewayService.share.getGatewayList(buildId: Intermediate.buildId,page: "1", keywords: nil, requestSuccess: { (list) in
- self.mainView.devDataList = list
- }) {
-
- }
- }
-
-
- }
|