title: ios programming - Data argument not used by format string
body: <p>I get a <code>Data argument not used by format string</code> error when I run the following code:</p>
  
  <pre><code>- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
  
  NSString *colour = ([colourArray objectAtIndex:row]);
  
  NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
  
  [defaults setObject:(colour) forKey:@"colour"];
  
  NSLog(@"NSString =", colour);
  NSLog(@"NSUserDefaults =", [defaults objectForKey:@"colour"]);
  
  }
  </code></pre>
  
  <p>I get the error on both <code>NSLog</code> lines. Also, here is what the log says:</p>
  
  <pre><code>2011-10-25 09:01:50.260 Random[35636:b303] NSString =
  2011-10-25 09:01:50.260 Random[35636:b303] NSUserDefaults =
  </code></pre>
  
  <p>Thank you,
  Arthur</p>