Skip to content

Instantly share code, notes, and snippets.

@jspahrsummers
Forked from anaisbetts/ViewBindingIsAwesome.cs
Last active December 12, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jspahrsummers/4728536 to your computer and use it in GitHub Desktop.
Save jspahrsummers/4728536 to your computer and use it in GitHub Desktop.
- (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