OC_从故事板上取视图控制器
2016-04-06 本文已影响171人
KermitX
在storyboard中给视图设置Identifier,以便区别不同的视图控制器
UIStoryboard *story = [UIStoryboard storyboardWithName:@"storyboardName" bundle:nil];
CustomerViewController *VC = [story instantiateViewControllerWithIdentifier:@"CustomVC"];