UIStroryboard分类
#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
IOS开发