您的位置:首页 > 移动开发 > IOS开发

[ios][switf]页面跳转

2015-12-02 10:55 197 查看
参考:http://bbs.csdn.net/topics/390899712

注意用push会崩溃

用其他的正常

1.storyboard直接拖拉,使用不同种类的segue均可
2.直接写代码:

//////push方式
self.navigationController.pushViewController(vc, animated:true)
//////present方式
self.presentViewController(vc, animated: true, completion: nil)


  

返回上一个页面

self.dismissViewControllerAnimated(true, completion: nil);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: