腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
首页
标签
segue
#
segue
关注
专栏文章
(3)
技术视频
(0)
互动问答
(1)
如何在选择UITableViewCell时进行推送?
2
回答
、
、
、
、
大力发达
这是另一个选项,它不需要使用didSelectRowAtIndexPath。 你只需将Interface Builder中的segue从原型单元连接到目标。 代码: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if segue.identifier == "AffiliationDetail", let destination = segue.destinationViewController as? AffiliateDetailViewController { if let cell = sender as? UITableViewCell, let indexPath = tableView.indexPathForCell(cell) { var affiliation = affiliations[indexPath.row] destination.affiliation = affiliation } } } ...
展开详请
赞
0
收藏
0
评论
0
分享
这是另一个选项,它不需要使用didSelectRowAtIndexPath。 你只需将Interface Builder中的segue从原型单元连接到目标。 代码: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if segue.identifier == "AffiliationDetail", let destination = segue.destinationViewController as? AffiliateDetailViewController { if let cell = sender as? UITableViewCell, let indexPath = tableView.indexPathForCell(cell) { var affiliation = affiliations[indexPath.row] destination.affiliation = affiliation } } }
热门
专栏
码客
817 文章
51 订阅
Elton的技术分享博客
227 文章
25 订阅
热门
标签
更多标签
ICP备案
云服务器
对象存储
云点播
即时通信 IM
实时音视频
DNS 解析 DNSPod
内容分发网络 CDN
人脸识别
私有网络
python
java
javascript
人工智能
android
领券