Passing data between view controllers in IOS

后端 未结 1 810
栀梦
栀梦 2020-12-22 06:53

I currently have a table view controller filled with data.

This table view controller leads to a Display view controller which displays the info with the selected da

相关标签:
1条回答
  • 2020-12-22 07:13

    Why are you query the database in the dispayVC Are you passing the same data that you received from tableVC to DisplayMoreInfoViewController? If yes then you can just do

     DisplayMoreInfoViewController *destViewController = segue.destinationViewController;
     destViewController.data = self.data
    

    If it is different the exlplain a little bite more what is

    [self.database getdatapassedpreviously]; 
    
    0 讨论(0)
提交回复
热议问题