Created
November 2, 2012 19:52
-
-
Save samsoir/4003937 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
- (void)configureTableCellForStatus:(UITableViewCell *)cell jobModel:(MSASitteratiJob *)job | |
{ | |
NSString *statusString = NSLocalizedStringFromTable(@"Pending", @"MyJobs", @"Pending"); | |
BOOL jobAccepted = (job.acceptedSitter != nil); | |
if (jobAccepted) | |
{ | |
statusString = NSLocalizedStringFromTable(@"Accepted", @"MyJobs", @"Accepted"); | |
} | |
cell.detailTextLabel.text = statusString; | |
cell.textLabel.text = [self.dateDecorator stringFromDate:job.startDateTime]; | |
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment