【问题标题】:Why UITextView/UITextField can't implement the UITextInput on iOS为什么 UITextView/UITextField 不能在 iOS 上实现 UITextInput
【发布时间】:2011-06-19 10:10:58
【问题描述】:

Apple 提供了一个基于 UIView 实现 UITextInput 的示例。我尝试基于 UITextView/UITextField 做同样的事情,但失败了。这就是为什么?

谢谢

【问题讨论】:

    标签: ios uitextfield uitextview


    【解决方案1】:

    Apple 在这些类上使用私有类作为 UITextInput 的委托。这意味着您不能将自己的代码挂在那里,因为您不能子类化私有类。

    【讨论】:

      猜你喜欢
      • 2014-09-18
      • 1970-01-01
      • 2012-03-25
      • 2011-12-16
      • 2012-08-31
      • 1970-01-01
      • 2012-04-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多