Created
May 21, 2013 17:54
-
-
Save ashfurrow/5621819 to your computer and use it in GitHub Desktop.
ReactiveCocoa Combining Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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