【问题标题】:Xcode: detect identifier row selectedXcode:检测标识符行选择
【发布时间】:2014-04-21 22:47:52
【问题描述】:

我的项目在 uitableview 中包含两个单元格设计并正确显示,但问题是当我选择一行以传递到 detailsviewcontroller 时...

如何检测所选行的标识符? 取决于所选行...在 didselectrowatindexpath 中需要重定向到其他 detailsviewcontroller。

谢谢大家 ;)

【问题讨论】:

    标签: xcode segue didselectrowatindexpath


    【解决方案1】:

    如果您有权访问选定的单元格,则可以访问它的 "reuseIdentifier"(我在此处为您链接的文档)。

    【讨论】:

    • 请给我看一个 didSelectRowAtIndexPath 类型的示例:if(cell.identifier == 'Cell1'){}else{}...
    • if([cell.reuseIdentifier isEqualTo: @"Cell1"])”怎么样?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-07
    • 2010-10-24
    • 2014-09-29
    • 1970-01-01
    • 1970-01-01
    • 2017-04-08
    相关资源
    最近更新 更多