Skip to content

Instantly share code, notes, and snippets.

@matteom
Last active December 28, 2015 18:59
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 matteom/7546844 to your computer and use it in GitHub Desktop.
Save matteom/7546844 to your computer and use it in GitHub Desktop.
Table view cell for leads
@interface PCLeadCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *companyLabel;
@end
@implementation PCLeadCell
- (void)setLead:(PCLead *)lead {
_lead = lead;
self.nameLabel.text = [lead.name stringByAppendingFormat:@" %@", lead.surname];
self.companyLabel.text = lead.company;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment