<tfoot id='EP0uW'></tfoot>

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

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

      <i id='EP0uW'><tr id='EP0uW'><dt id='EP0uW'><q id='EP0uW'><span id='EP0uW'><b id='EP0uW'><form id='EP0uW'><ins id='EP0uW'></ins><ul id='EP0uW'></ul><sub id='EP0uW'></sub></form><legend id='EP0uW'></legend><bdo id='EP0uW'><pre id='EP0uW'><center id='EP0uW'></center></pre></bdo></b><th id='EP0uW'></th></span></q></dt></tr></i><div id='EP0uW'><tfoot id='EP0uW'></tfoot><dl id='EP0uW'><fieldset id='EP0uW'></fieldset></dl></div>
    2. 不在编辑模式下重新排序 UITableView 上的控件?

      Reordering controls on UITableView while not in editing mode?(不在编辑模式下重新排序 UITableView 上的控件?)

    3. <legend id='Jj2ZP'><style id='Jj2ZP'><dir id='Jj2ZP'><q id='Jj2ZP'></q></dir></style></legend>
        <tbody id='Jj2ZP'></tbody>

          <bdo id='Jj2ZP'></bdo><ul id='Jj2ZP'></ul>

          <small id='Jj2ZP'></small><noframes id='Jj2ZP'>

              1. <i id='Jj2ZP'><tr id='Jj2ZP'><dt id='Jj2ZP'><q id='Jj2ZP'><span id='Jj2ZP'><b id='Jj2ZP'><form id='Jj2ZP'><ins id='Jj2ZP'></ins><ul id='Jj2ZP'></ul><sub id='Jj2ZP'></sub></form><legend id='Jj2ZP'></legend><bdo id='Jj2ZP'><pre id='Jj2ZP'><center id='Jj2ZP'></center></pre></bdo></b><th id='Jj2ZP'></th></span></q></dt></tr></i><div id='Jj2ZP'><tfoot id='Jj2ZP'></tfoot><dl id='Jj2ZP'><fieldset id='Jj2ZP'></fieldset></dl></div>
                <tfoot id='Jj2ZP'></tfoot>
                本文介绍了不在编辑模式下重新排序 UITableView 上的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个 UITableView,我希望能够在我不处于编辑模式时重新排序行,这意味着我不想看到删除图标,直到我按下编辑.我希望能够一直看到和使用重新排序控件.这可能吗?

                I have a UITableView and I want to be able to reorder the rows when I'm not in edit mode, meaning I don't want to see the delete icons until I press Edit. I want to be able to see and use the reordering controls all the time. Is that possible?

                我是否必须始终将 UITableView 保持在编辑模式并手动启用/禁用删除图标?在这种情况下如何禁用滑动删除?

                Do I have to keep the UITableView in editing mode all the time and enable/disable the delete icon manually? How to disable the swipe to delete in that case?

                推荐答案

                据我所知,仅使用编辑标志是无法做到的.但是,要达到类似的效果并不难.

                As far as I'm aware you can't do it using just the editing flag. However, it's not hard to achieve a similar effect.

                有你自己的布尔值,即deleting.将 tableview 单元格设置为 cell.showsReorderControl = YES.然后实现移动单元格所需的所有方法.我认为您正在寻找的代码是.--tableView:editingStyleForRowAtIndexPath:如果 deleting == YES 返回 UITableViewCellEditingStyleDelete 否则返回 UITableViewCellEditingStyleNone.最后,始终设置 tableView.editing = YES.如果在更改 deleting bool 之前和之后运行 [tableView beginUpdates][tableView endUpdates] 一切都应该正常.如果这没有意义,请告诉我,我会再试一次.

                Have your own boolean ie deleting. Set the tableview cell to cell.showsReorderControl = YES. Then implement all the methods required for moving cells. The bit of code I think you're looking for is. – tableView:editingStyleForRowAtIndexPath: if deleting == YES return UITableViewCellEditingStyleDelete otherwise return UITableViewCellEditingStyleNone. Finally, set tableView.editing = YES always. If before and after changing the deleting bool you run [tableView beginUpdates] and [tableView endUpdates] everything should work fine. Let me know if this doesn't make sense, and I'll try again.

                这篇关于不在编辑模式下重新排序 UITableView 上的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
                [ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)
                <i id='KZ7v3'><tr id='KZ7v3'><dt id='KZ7v3'><q id='KZ7v3'><span id='KZ7v3'><b id='KZ7v3'><form id='KZ7v3'><ins id='KZ7v3'></ins><ul id='KZ7v3'></ul><sub id='KZ7v3'></sub></form><legend id='KZ7v3'></legend><bdo id='KZ7v3'><pre id='KZ7v3'><center id='KZ7v3'></center></pre></bdo></b><th id='KZ7v3'></th></span></q></dt></tr></i><div id='KZ7v3'><tfoot id='KZ7v3'></tfoot><dl id='KZ7v3'><fieldset id='KZ7v3'></fieldset></dl></div>
                    <bdo id='KZ7v3'></bdo><ul id='KZ7v3'></ul>
                  • <tfoot id='KZ7v3'></tfoot>
                    <legend id='KZ7v3'><style id='KZ7v3'><dir id='KZ7v3'><q id='KZ7v3'></q></dir></style></legend>

                            <tbody id='KZ7v3'></tbody>
                        • <small id='KZ7v3'></small><noframes id='KZ7v3'>