iOS 如何调用不同Storyboard 里的controller

//获取Storyboard 对象

+(UIStoryboard *)fetchChildBoard{

UIStoryboard *insiderboard=[UIStoryboard storyboardWithName:@"XXX" bundle:nil];

return insiderboard;

}

//通过控制器的ID 获取相应的控制器对象 Identifier 为下图中的XXXX

+(id)fetchChildBoardWithControllerIdentifier:(NSString*)Identifier{

UIStoryboard *insiderboard=[UIStoryboard storyboardWithName:@"XXX" bundle:nil];

return [insiderboard instantiateViewControllerWithIdentifier:Identifier];;

}


iOS 如何调用不同Storyboard 里的controller_第1张图片

你可能感兴趣的:(iOS 如何调用不同Storyboard 里的controller)