Skip to content

Instantly share code, notes, and snippets.

@SunXiaoShan
Created July 7, 2017 09:34
Show Gist options
  • Save SunXiaoShan/a3ca172422f62b452bf8664676de442e to your computer and use it in GitHub Desktop.
Save SunXiaoShan/a3ca172422f62b452bf8664676de442e to your computer and use it in GitHub Desktop.
ObserveButtonParameter
RAC(_btnButton, hidden) = [RACSignal
combineLatest:@[_textView.rac_textSignal]
reduce:^id _Nullable(NSString * text) {
return @(text.length==0);
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment