【问题标题】:undeclared identifier 'UITextViewTextDidChangeNotification' when compiling with apportable使用 apportable 编译时未声明的标识符“UITextViewTextDidChangeNotification”
【发布时间】:2013-07-25 05:14:01
【问题描述】:

我在尝试使用 Apportable 编译我们的 iOS 应用程序时遇到以下错误:

使用未声明的标识符“UITextViewTextDidChangeNotification”;你的意思是“UITextFieldTextDidChangeNotification”吗?

失败的代码行是:

 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(textChanged:) name:UITextViewTextDidChangeNotification object:nil];

XCode 说 UITextViewTextDidChangeNotification 是一个有效的通知。对此的任何见解都会很棒。同时我会继续搜索。

谢谢!

【问题讨论】:

  • 你把那行代码放在哪里?
  • 请解释一下整个情况,你在用什么,你想达到什么?
  • 它实际上是 KTTextView (github.com/kirbyt/KTTextView) 的一部分,所以它不是我的代码。但是,代码在 XCode 中编译和运行良好,只是在 Apportable 中不行。我认为问题并不完全在 Objective-C 代码中,而是与 Apportable 中的库和头文件有关。也许它没有实施。谢谢。

标签: ios apportable


【解决方案1】:

UITextViewTextDidChangeNotification 尚未在 Apportable 平台中实现。

请注意,$HOME/.apportable/SDK/System/UIKit/UITextView.h 中缺少它

【讨论】:

    猜你喜欢
    • 2012-09-04
    • 2014-08-17
    • 2021-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多