Search code examples
iosapportable

undeclared identifier 'UITextViewTextDidChangeNotification' when compiling with apportable


I'm getting the below error when trying to compile our iOS app using Apportable:

use of undeclared identifier 'UITextViewTextDidChangeNotification'; did you mean 'UITextFieldTextDidChangeNotification'?

The line of code it is failing on is:

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

XCode says that UITextViewTextDidChangeNotification is a valid Notification. Any insight into this would be great. In the mean time I'll continue searching.

Thanks!


Solution

  • UITextViewTextDidChangeNotification is not yet implemented in the Apportable platform.

    Note that it is missing from $HOME/.apportable/SDK/System/UIKit/UITextView.h