1,跳转到xib 
假设有一个按钮,这个按钮就是实现跳转的,那么在这个按钮的点击事件中,代码可以这样写。 
AViewController *a1= [[AViewController alloc]initWithNibName:@”AViewController” bundle:[NSBundle mainBundle]]; 
[self.navigationController pushViewController:a1 animated:YES]; 
2,跳转到storyboard 
如上,代码可以这样写 
UIStoryboard *sb=[UIStoryboard storyboardWithName:@”A” bundle:nil]; 
[self presentViewController:[sb instantiateInitialViewController] animated:YES completion:nil];

相关文章:

  • 2022-12-23
  • 2021-10-30
  • 2021-08-28
  • 2021-07-23
  • 2021-08-09
  • 2022-12-23
  • 2021-08-06
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案