I have a feature in my app that allows the user to change the color of the top and bottom bars of the app. But I don't know how to save this color change so that it will stayed changed. I tried using NSUserDefaults but it didn't work. I am using this method to set the colors:
-(IBAction)uiColorGreen:(id)sender{
topBar.tintColor = [UIColor greenColor];
bottomBar.tintColor = [UIColor greenColor];
How would I save the topBar and bottomBar color attributes so that the chosen color will be applied on start up of the app?