【问题标题】:How to clear text of textfield which is in table when table reload重新加载表格时如何清除表格中的文本字段的文本
【发布时间】:2012-05-24 11:12:24
【问题描述】:

我在表格的每个单元格中都有文本字段。所以当我调用表格重新加载时,我想清除(无)文本字段文本。

谢谢你的建议。

【问题讨论】:

    标签: iphone uitextfield


    【解决方案1】:

    n cellForRow:创建 textField 的单元格集文本的方法

    cell.yourTextField.text = @"";
    

    【讨论】:

      【解决方案2】:

      在 cellForRow 中:创建 textField 的单元格集文本为 nil 的方法:

      cell.yourTextField.text = nil;
      

      【讨论】:

        猜你喜欢
        • 2017-11-18
        • 2017-05-25
        • 1970-01-01
        • 2016-10-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多