Saving a custom RGB color with NSUserDefaults then loading it and using it to draw -


so learning xcode , made app learning website... http://www.raywenderlich.com/18840/how-to-make-a-simple-drawing-app-with-uikit , there way make own custom color. want make can save color nsuserdefaults custom name , color. go 1 of selectors (picker view) , load color , use it.

i'm real noob can explain me how in simple terms? need finished, if go me.

thanks guys, logan

you can convert rgb values have uicolor object:

uicolor *color = [uicolor colorwithred:red green:green blue:blue alpha:alpha]; 

and save nsuserdefaults: saving uicolor , loading nsuserdefaults

and can retrieve rgb values uicolor object: how rgb values uicolor?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -