Advertisement
Guest User

Untitled

a guest
May 4th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void)updateOthersProperty {
  2.   NSString *documentTypeHandle = self.document.typeHandle;
  3.   if([documentTypeHandle isEqualToString:@"APPLICATION_FORM"]) {
  4.     self.hexagonView.backgroundColor = [UIColor blackColor];
  5.     self.documentImageView.image = [UIImage imageNamed:@"applicationIcon"];
  6.   }
  7.  
  8.   if([documentTypeHandle isEqualToString:@"CONTRACT"]) {
  9.     self.hexagonView.backgroundColor = [UIColor blackColor];
  10.     self.documentImageView.image = [UIImage imageNamed:@"contractIcon"];
  11.   }
  12.  
  13.   if([documentTypeHandle isEqualToString:@"CRB"]) {
  14.     self.hexagonView.backgroundColor = [UIColor redColor];
  15.     self.documentImageView.image = [UIImage imageNamed:@"CrbIcon"];
  16.   }
  17.  
  18.   if([documentTypeHandle isEqualToString:@"GAS_CERTIFICATE"]) {
  19.     self.hexagonView.backgroundColor = [UIColor redColor];
  20.     self.documentImageView.image = [UIImage imageNamed:@"gasCertificate"];
  21.   }
  22.  
  23.   if([documentTypeHandle isEqualToString:@"PART_P"]) {
  24.     self.hexagonView.backgroundColor = [UIColor redColor];
  25.     self.documentImageView.image = [UIImage imageNamed:@"electricCertificate"];
  26.   }
  27.  
  28.   if([documentTypeHandle isEqualToString:@"PUBLIC_LIABILITY"]) {
  29.     self.hexagonView.backgroundColor = [UIColor blackColor];
  30.     self.documentImageView.image = [UIImage imageNamed:@"employeeIcon"];
  31.   }
  32.   if([documentTypeHandle isEqualToString:@"EMPLOYEE_LIABILITY"]) {
  33.     self.hexagonView.backgroundColor = [UIColor orangeColor];
  34.     self.documentImageView.image = [UIImage imageNamed:@"employeeIcon"];
  35.   }
  36.   if([documentTypeHandle isEqualToString:@"ASBESTOS_CERTIFICATE"]) {
  37.     self.hexagonView.backgroundColor = [UIColor blackColor];
  38.     self.documentImageView.image = [UIImage imageNamed:@"asbestosIcon"];
  39.   }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement