在要返回的页面添加转场方法,例如:
@IBAction func close(segue:UIStoryboardSegue) {
let review = segue.source as!ReViewController
if let rat = review.rat {
self.ratingBtn.image = UIImage(named: rat)
}
}
在要返回的页面添加转场方法,例如:
@IBAction func close(segue:UIStoryboardSegue) {
let review = segue.source as!ReViewController
if let rat = review.rat {
self.ratingBtn.image = UIImage(named: rat)
}
}
本文标题:ios 使用segue跳转页面
本文链接:https://www.haomeiwen.com/subject/irrjnttx.html
网友评论