0

I want to make my UITextView to be not editable when the length of text is more than 200. When using UITextViewDelegate, I can use - (BOOL)textViewShouldBeginEditing:(UITextView *)textView. How to make it using ReactiveCocoa?

Andrew
  • 1,088
  • 10
  • 21

1 Answers1

0

Unfortunately there's no good way to "lift" a protocol method that returns a value, since it'd require that the signal is synchronous. Could you disable the text view instead?

joshaber
  • 2,465
  • 20
  • 13
  • I have resolved this problem by setting the delegate before using `signal_text` and using `textViewShouldChangeXXX` instead. Thank you after all. – Andrew May 06 '14 at 02:05