Skip to content

Instantly share code, notes, and snippets.

@ashfurrow
Created May 21, 2013 17:54
Show Gist options
  • Save ashfurrow/5621819 to your computer and use it in GitHub Desktop.
Save ashfurrow/5621819 to your computer and use it in GitHub Desktop.
ReactiveCocoa Combining Example
RAC(self.submitButton.enabled) = [RACSignal combineLatest:@[self.usernameField.rac_textSignal, self.passwordField.rac_textSignal] reduce:^id(NSString *userName, NSString *password) {
return @(userName.length >= 6 && password.length >= 6);
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment