OC_从故事板上取视图控制器

作者: KermitX | 来源:发表于2016-04-06 18:17 被阅读171次

    在storyboard中给视图设置Identifier,以便区别不同的视图控制器

    UIStoryboard *story = [UIStoryboard storyboardWithName:@"storyboardName" bundle:nil];  
    CustomerViewController *VC = [story instantiateViewControllerWithIdentifier:@"CustomVC"]; 
    

    相关文章

      网友评论

        本文标题:OC_从故事板上取视图控制器

        本文链接:https://www.haomeiwen.com/subject/dauulttx.html