Forked from anaisbetts/ViewBindingIsAwesome.cs
Last active
December 12, 2015 06:19
-
-
Save jspahrsummers/4728536 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)initWithFrame:(CGRect)rect { | |
self = [super initWithFrame:rect]; | |
if (self == nil) return nil; | |
[self initializeComponent]; | |
RAC(self.title.text) = RACAble(self.viewModel.model.title); | |
RAC(self.userAndOrgTiles.itemSource) = RACAble(self.viewModel.userAndOrgTiles); | |
self.loginButton.rac_command = self.viewModel.showLoginCommand; | |
RAC(self.viewModel.selectedOrganizationTile) = RACAble(self.userAndOrgTiles.selectedItem); | |
return self; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment