Last active
August 29, 2015 14:08
-
-
Save bobspryn/cead1f81935f18b2acb5 to your computer and use it in GitHub Desktop.
This file contains 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
- (id) initWithViewModel:(MYTwitterLookupViewModel *) viewModel { | |
self = [super init]; | |
if (!self) return nil; | |
_viewModel = viewModel; | |
return self; | |
} | |
- (void) viewDidLoad { | |
[super viewDidLoad]; | |
_goButton.enabled = viewModel.isUsernameValid; | |
_goButton.alpha = viewModel.isUsernameValid ? 1 : 0.5; | |
// etc | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment