swift 界面跳转和传值

  //实例化将要跳转的controller
        let sb = UIStoryboard(name: "talkDetail", bundle:nil)
        let vc = sb.instantiateViewController(withIdentifier: "flowTalk") as! DetailViewController
        vc.imageUrl = URL1
        vc.deHeadImage = head1
        vc.talkID = phone
        //跳转
        self.navigationController?.pushViewController(vc, animated: true)

 



posted @ 2017-11-06 10:39  齐亚宗  阅读(1792)  评论(0编辑  收藏  举报