【问题标题】:Adding a Clear Button to a UITextview向 UITextview 添加清除按钮
【发布时间】:2012-03-15 14:12:03
【问题描述】:

我知道我需要一个 UIButton 来创建一个动作来清除 UITextView 中的内容。

我不知道实际清除UITextView中内容的代码是什么。

如果有人对此有任何代码,我将不胜感激。

谢谢

【问题讨论】:

    标签: xcode uibutton xcode4.2 uitextview storyboard


    【解决方案1】:

    怎么样:

    mytextView.text = @"";
    

    【讨论】:

      猜你喜欢
      • 2011-04-22
      • 1970-01-01
      • 1970-01-01
      • 2014-11-08
      • 1970-01-01
      • 1970-01-01
      • 2010-09-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多