Guest User

Untitled

a guest
Feb 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (NWStory *story in self.mainQueue.stories) {
  2.         NSString *tme = [story.fields valueForKey:@"tme"];
  3.         NSString *meta = [story.fields valueForKey:@"meta"];
  4.         for (NSDictionary *color in colors) {
  5.             NSString *colorValue = [color valueForKey:@"colorValue"];
  6.             for (NSString *tmeColor in [color objectForKey:@"tme"]) {
  7.                 if ([tme rangeOfString:tmeColor].location != NSNotFound) {
  8.                     [story.fields setValue:colorValue forKey:@"color"];
  9.                 }
  10.             }
  11.             for (NSString *metaColor in [color objectForKey:@"meta"]) {
  12.                 if ([meta rangeOfString:metaColor].location != NSNotFound) {
  13.                     [story.fields setValue:colorValue forKey:@"color"];
  14.                 }
  15.             }
  16.            
  17.         }
Add Comment
Please, Sign In to add comment