模态窗口的使用

连线的话,拖动之后选择 Pressent Modally就可以了
代码

跳转
let storyboard = UIStoryboard(name: "Main", bundle: nil)
var modal = storyboard.instantiateViewControllerWithIdentifier("Modal")
self.presentViewController(modal, animated: true, completion: nil)
从模态窗中返回
self.dismissViewControllerAnimated(true, completion: nil)

在模态窗中没有 Navigation Item ,手动添加也没用

标签: swift, ios控件

添加新评论