多个Storyboard切换

- (void)showStoryboard
{
    // 实例化MainStoryboard
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    
    // 在主线程上更新Storyboard
    dispatch_async(dispatch_get_main_queue(), ^{
        
        self.window.rootViewController = storyboard.instantiateInitialViewController;
    });
}

 

posted @ 2014-03-05 10:02  TianXiang.Liu  阅读(257)  评论(0编辑  收藏  举报