【问题标题】:What is the meaning of this sign?这个标志的含义是什么?
【发布时间】:2011-08-15 10:00:26
【问题描述】:

我是 iphone 开发的新手。我从任何地方获取代码,但我无法理解这个符号 (=) 的用途,如下图所示。

【问题讨论】:

    标签: iphone uiview uitableview


    【解决方案1】:

    表示可以在表格中上下移动行。

    如果您想对这些操作做出回应,请查看您的 UITableViewDataSource。 “重新排序表行”部分是相关部分。

    【讨论】:

    • 使用了哪个函数或参数?
    【解决方案2】:

    此标志表明您可以在 UItable 类中为此上下移动行,您将获得功能 这是在下面定义的。

    // 重写以支持重新排列表格视图。

    - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
    //write your code
    

    }

    // 覆盖以支持表格视图的条件重新排列。

     - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
    // Return NO if you do not want the item to be re-orderable.
    return YES;
    

    }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-15
      • 1970-01-01
      • 2022-06-26
      • 2020-11-04
      • 2011-05-23
      • 2020-06-18
      • 2021-03-07
      • 2021-06-01
      相关资源
      最近更新 更多