#import "UIStoryboard+WF.h" @implementation UIStoryboard (WF) +(void)showInitialVCWithName:(NSString *)name{ UIStoryboard *storyboard = [UIStoryboard storyboardWithName:name bundle:nil]; //WXLog(@"%@",[UIApplication sharedApplication].keyWindow); [UIApplication sharedApplication].keyWindow.rootViewController = storyboard.instantiateInitialViewController; } +(id)initialVCWithName:(NSString *)name{ UIStoryboard *storyboard = [UIStoryboard storyboardWithName:name bundle:nil]; return [storyboard instantiateInitialViewController]; } @end
时间: 2024-10-10 01:08:32