I have a super simple app with root view controller and modal view controller.
At first view i have only one UIButton – it animate transition to modal controller. At modal view controller I have 4 sliders (R,G,B,Alpha), they are changing modal view background color and one UIBUtton to exit from modal view. By clicking this button background color of my root controller needs to be changed to the same color as in modal controller. How can I do this and make my modal controller act to achieve this?
Also I need to save this preferences to NSUserDefaults. So What is the most correct way to do this?
Hi Here is a quick reference for some of the things you can do with NSUserDefaults. You can use this for saving the data in NSUserDefault
Saving
Retrieving
And you can get the RGB Values using utilities like CGFloat red = [myColor red]; and CGFloat Green= [myColor Green]; like wise and use it to save them.
Or you can check Get RGB value from UIColor presets for the same