title: How to store and load backgroundColor in NSUserDefaults
body: <p>store - </p>
  
  <pre><code>-(IBAction) setMyColor:(id)sender{
  
  if (sender == yellowButton ) {
      [colorView setBackgroundColor:[UIColor yellowColor]];
  }
  
  NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
  UIColor *strColor = [colorView backgroundColor];
  [userDefaults setObject:strColor forKey:@"myColor"];
  [userDefaults synchronize];
  </code></pre>
  
  <p>}</p>
  
  <p>load - </p>
  
  <pre><code>- (void)viewDidLoad {   
  
  NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
  [colorView setBackgroundColor[UIColor [userDefaults objectForKey:@"myColor"]]];
  
  [super viewDidLoad];
  </code></pre>
  
  <p>}</p>
  
  <p>but it failed to run ...
  maybe the question is 'how to get the backgroundColor value from UIView'?</p>