方式1:先指定好是哪一个storyboard,然后在指定的这个storyboard中找出,做了identifier标记的controller,再把这个controller实例化一下,赋给即将展现的子视图

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName: @"Main" bundle: nil];
    self.handlerViewCtrl = [storyboard instantiateViewControllerWithIdentifier:@"HandlerCtrl"];


方式2: 也可以通过self.storyboard获得当前的主故事板(main storyboard)
    self.handlerViewCtrl = [self.storyboard instantiateViewControllerWithIdentifier:@"HandlerCtrl"];

posted on 2015-09-07 14:04  4Dream  阅读(134)  评论(0)    收藏  举报