页面的跳转swift

来源:互联网 发布:淘宝登录itunes store 编辑:程序博客网 时间:2024/04/29 04:54
swift语言页面跳转方式:

 push  let secongViewController :SecondViewController = SecondViewController ()

       secongViewController.modalTransitionStyle = .coverVertical;

//        case coverVertical 新场景从下向上移动,逐渐覆盖旧场景

//        

//        case flipHorizontal 视图水平翻转,以显示背面的新场景

//        

//        case crossDissolve 旧场景淡出,新场景淡入

//        

//        @available(iOS 3.2, *)

//        case partialCurl 旧场景像书页一样翻开,显示下面的新场景


        self.present(secongViewController, animated:true, completion: nil)//跳转到下一个页面

 

        pop   self.dismiss(animated:true, completion: nil)//返回上一页面





0 0
原创粉丝点击