在storyboard中给视图设置Identifier,以便区别不同的视图控制器
UIStoryboard *story = [UIStoryboard storyboardWithName:@"storyboardName" bundle:nil];
CustomerViewController *VC = [story instantiateViewControllerWithIdentifier:@"CustomVC"];
在storyboard中给视图设置Identifier,以便区别不同的视图控制器
UIStoryboard *story = [UIStoryboard storyboardWithName:@"storyboardName" bundle:nil];
CustomerViewController *VC = [story instantiateViewControllerWithIdentifier:@"CustomVC"];
本文标题:OC_从故事板上取视图控制器
本文链接:https://www.haomeiwen.com/subject/dauulttx.html
网友评论