f2cf74c7
yangbin
1.0.20(4)
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//
// 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)
}
}
|