UIStoryboard

class UIStoryboard : NSObject
  • 获取storyBoard中对应的UIViewController

    Declaration

    Swift

    public class func viewController<T>(with: T.Type) -> T? where T : UIViewController

    Parameters

    type

    ViewController类型

    Return Value

    UIViewController