从storyBoard中获取viewController

来源:互联网 发布:manual软件 编辑:程序博客网 时间:2024/05/01 07:50
#pragma mark#pragma mark----------- getViewControllerFromstoryboard  //从storyBoard中获取viewController+ (UIViewController *)getViewControllerFromstoryboard:(NSString *)story WithRestorationID:(NSString *)identifier{    UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:story bundle:nil];    return [storyBoard instantiateViewControllerWithIdentifier:identifier];}
0 0
原创粉丝点击