storyboard 总结

1.storyboard 布局时用代码实现页面跳转:布局

  a> 获取当前 storyboard : [self storyboard]
spa

  b> 为将要跳转到的 viewController 添加 storyboard IDit

  c> 经过 当前storyboard 和 将要跳转到的页面id (storyboard ID) , 获取要跳转的 UIViewControllerio

  d> 经过 push 或者 模态 方式实现跳转im

  例子:  UIViewController *vc = [[self storyboard] instantiateViewControllerWithIdentifier:@"loginBoard"];
            [self.navigationController pushViewController:vc animated:YES];

 
animate

相关文章
相关标签/搜索