我有2个vcs,需要从一个到另一个发送数据
第一个VC(发送数据):
<div id="nav">
<ul id="my_navbar">
<li class="list_el"><a href="index.php">Home</a>
</li>
<li class="list_el"><a href="team.php">Team</a>
</li>
<li class="list_el"><a href="menu.php">Menu</a>
</li>
<li class="list_el"><a href="contact.php">Contact</a>
</li>
</ul>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
第二个VC(获取数据):
protocol CSPFamilyFeedVCDelegate : class{
func getImage(image: String)
}
class CSPFamilyFeedVC: UITableViewController {
....
weak var delegate: CSPFamilyFeedVCDelegate?
....
func presentPhoto(sender: AnyObject){
let index = sender.tag - feedModelFunctions.tagForElements
self.delegate?.getImage(feedModelFunctions.fullPost[index].images)
self.performSegueWithIdentifier("CSPPresentPhoto", sender: self)
}
}
从第一到第二的争论 无法在第二个vc
获取数据