Blame view

Twear/Tools/UIStoryboard+Extension.swift 482 Bytes
75d24c15   yangbin   123
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  //
  //  UIStoryboard+Extension.swift
  //  botiOS
  //
  //  Created by lidapeng on 2018/1/7.
  //  Copyright © 2018 lidapeng. All rights reserved.
  //
  
  import UIKit
  
  extension UIStoryboard {
      
      class func loadViewControllerIdentifier(storyboardName : String, identifier : String) -> UIViewController {
          let storyBoard = UIStoryboard.init(name: storyboardName, bundle: Bundle.main)
          return storyBoard.instantiateViewController(withIdentifier: identifier)
      }
      
  }