Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (NWStory *story in self.mainQueue.stories) {
- NSString *tme = [story.fields valueForKey:@"tme"];
- NSString *meta = [story.fields valueForKey:@"meta"];
- for (NSDictionary *color in colors) {
- NSString *colorValue = [color valueForKey:@"colorValue"];
- for (NSString *tmeColor in [color objectForKey:@"tme"]) {
- if ([tme rangeOfString:tmeColor].location != NSNotFound) {
- [story.fields setValue:colorValue forKey:@"color"];
- }
- }
- for (NSString *metaColor in [color objectForKey:@"meta"]) {
- if ([meta rangeOfString:metaColor].location != NSNotFound) {
- [story.fields setValue:colorValue forKey:@"color"];
- }
- }
- }
Add Comment
Please, Sign In to add comment