//
//  EZStoryBoardTool.m
//  EZOpenSDKDemo
//
//  Created by JuneCheng on 2021/10/20.
//  Copyright © 2021 hikvision. All rights reserved.
//

#import "EZStoryBoardTool.h"

@implementation EZStoryBoardTool

+ (id)getViewController:(NSString *)storyboardName {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
    UIViewController *vc = storyboard.instantiateInitialViewController;
    return vc;
}


+ (id)getViewController:(NSString *)storyboardName andIdentifier:(NSString *)identifier {
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
    UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:identifier];
    return vc;
}

@end
