I am trying to implement one static global dictionary that can able to access on all classes. is there any other way other than singleton. i tried a-lot in stack overflow i couldn't get any solution someone help me to sort this problem. This is my code for dictionary.
NSDictionary *colors = @{@"black": [UIColor blackColor], @"pink": [UIColor purpleColor], @"blue": [UIColor blueColor], @"red": [UIColor redColor], @"yellow": [UIColor yellowColor]};
i am using in my classes with user defualts like this.
NSString *savedValue = [[NSUserDefaults standardUserDefaults]
stringForKey:@"colordatafromthisvc"];
UIColor *color = colors[savedValue] ?: [UIColor orangeColor];
_nxtbtnlet.backgroundColor = color;