UIStoryboard

Getting a Storyboard Object
+ storyboardWithName:bundle: //获得特定的storyBorad
Instantiating Storyboard View Controllers
– instantiateInitialViewController //返回初始化场景的controller
– instantiateViewControllerWithIdentifier: //返回指定的controller

 

 

1.举例说明

//取得UIStoryboard对象
UIStoryboard *storyboard=self.storyboard;//获取当前的storyboard对象
//实例化
PushDetailViewController *push=[storyboard instantiateViewControllerWithIdentifier:@" PushDetailViewController"];

//赋值
push.GUID=[dic objectForKey:@"GUID"];
      
//push实例化的对象
[self.navigatorController pushViewController:push animated:YES];
2.注意事项
UIStoryboard_第1张图片
 

你可能感兴趣的:(UI)