UIStoryboard

class UIStoryboard : NSObject
  • SwifterSwift: Get main storyboard for application

    Declaration

    Swift

    @available(*, deprecated: 4.3, renamed: "main", message: "Use main instead")
    public static var mainStoryboard: UIStoryboard? { get }
  • SwifterSwift: Get main storyboard for application

    Declaration

    Swift

    public static var main: UIStoryboard? { get }
  • SwifterSwift: Instantiate a UIViewController using its class name

    Declaration

    Swift

    public func instantiateViewController<T>(withClass name: T.Type) -> T? where T : UIViewController

    Parameters

    name

    UIViewController type

    Return Value

    The view controller corresponding to specified class name