iOS storyboard passing data navigationViewController

后端 未结 2 1149
情歌与酒
情歌与酒 2020-12-02 15:24

I have problem with proper passing data between view\'s but not in standard way.

Picture describing my problem:

2条回答
  •  失恋的感觉
    2020-12-02 16:23

    Here it is in swift:

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) 
    {    
        if (segue.identifier == "sLogowanieFirmy") {
            let nav = segue.destinationViewController as! UINavigationController 
            let firmyVC = nav.topViewController as! FirmyVC
            firmyVC.tabFirmy = self.tabFirmy            
        }
    
        // etc...
    }
    

提交回复
热议问题