1. <small id='rOXfo'></small><noframes id='rOXfo'>

    <i id='rOXfo'><tr id='rOXfo'><dt id='rOXfo'><q id='rOXfo'><span id='rOXfo'><b id='rOXfo'><form id='rOXfo'><ins id='rOXfo'></ins><ul id='rOXfo'></ul><sub id='rOXfo'></sub></form><legend id='rOXfo'></legend><bdo id='rOXfo'><pre id='rOXfo'><center id='rOXfo'></center></pre></bdo></b><th id='rOXfo'></th></span></q></dt></tr></i><div id='rOXfo'><tfoot id='rOXfo'></tfoot><dl id='rOXfo'><fieldset id='rOXfo'></fieldset></dl></div>

    <legend id='rOXfo'><style id='rOXfo'><dir id='rOXfo'><q id='rOXfo'></q></dir></style></legend>
      <bdo id='rOXfo'></bdo><ul id='rOXfo'></ul>

  2. <tfoot id='rOXfo'></tfoot>

      如何以编程方式“点击"一个 UITableView 单元格?

      How to programmatically quot;tapquot; a UITableView cell?(如何以编程方式“点击一个 UITableView 单元格?)
        <bdo id='IDgbL'></bdo><ul id='IDgbL'></ul>

          <tbody id='IDgbL'></tbody>

          • <small id='IDgbL'></small><noframes id='IDgbL'>

            1. <tfoot id='IDgbL'></tfoot>
            2. <legend id='IDgbL'><style id='IDgbL'><dir id='IDgbL'><q id='IDgbL'></q></dir></style></legend>

                <i id='IDgbL'><tr id='IDgbL'><dt id='IDgbL'><q id='IDgbL'><span id='IDgbL'><b id='IDgbL'><form id='IDgbL'><ins id='IDgbL'></ins><ul id='IDgbL'></ul><sub id='IDgbL'></sub></form><legend id='IDgbL'></legend><bdo id='IDgbL'><pre id='IDgbL'><center id='IDgbL'></center></pre></bdo></b><th id='IDgbL'></th></span></q></dt></tr></i><div id='IDgbL'><tfoot id='IDgbL'></tfoot><dl id='IDgbL'><fieldset id='IDgbL'></fieldset></dl></div>
                本文介绍了如何以编程方式“点击"一个 UITableView 单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想知道有没有一种方法可以让我的代码点击"我的 UITableView 中的一个单元格,以重现 - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 委托方法.

                I was wondering is there a way that I could have my code "tap" a cell in my UITableView in order to reproduce the behaviour specified in the - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath delegate method.

                我猜换句话说,是否可以以编程方式调用 - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 委托方法?

                I guess in other words, is is possible to invoke the - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath delegate method programatically?

                推荐答案

                你不能把 didSelectRowAtIndexPath 中的任何逻辑放到一个单独的方法中,然后从 didSelectRowAtIndexPath 和其他任何你想调用相同代码的地方调用该方法吗?

                Can't you put any logic in didSelectRowAtIndexPath into a separate method and just call that method from both didSelectRowAtIndexPath and wherever else you want to call the same code?

                这篇关于如何以编程方式“点击"一个 UITableView 单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                • <small id='VEmv0'></small><noframes id='VEmv0'>

                  1. <legend id='VEmv0'><style id='VEmv0'><dir id='VEmv0'><q id='VEmv0'></q></dir></style></legend>
                      <bdo id='VEmv0'></bdo><ul id='VEmv0'></ul>

                          <tbody id='VEmv0'></tbody>
                        <i id='VEmv0'><tr id='VEmv0'><dt id='VEmv0'><q id='VEmv0'><span id='VEmv0'><b id='VEmv0'><form id='VEmv0'><ins id='VEmv0'></ins><ul id='VEmv0'></ul><sub id='VEmv0'></sub></form><legend id='VEmv0'></legend><bdo id='VEmv0'><pre id='VEmv0'><center id='VEmv0'></center></pre></bdo></b><th id='VEmv0'></th></span></q></dt></tr></i><div id='VEmv0'><tfoot id='VEmv0'></tfoot><dl id='VEmv0'><fieldset id='VEmv0'></fieldset></dl></div>

                        <tfoot id='VEmv0'></tfoot>