title: Xcode iOS: Convert int to NSString
body: <p>I'm trying to grab avalue from a UIPicker which is populated with round numbers, integers pulled from and NSMutableArray. I'm trying to convert the pulled values to an actual int.</p>
  
  <p>I tried this in the .m:</p>
  
  <pre><code>int pickednumber;
  
  
  ......
  
  -(void) pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component{
  
  
  NSString *numbers = [arrayNumbers objectAtIndex:[pickerView selectedRowInComponent:0]];
  
  pickednumber = [NSString stringWithFormat:@"%d", numbers];
  
  NSLog(@"Picked number %@ ", numbers); 
  
  }
  </code></pre>
  
  <p>I get the error in the pickednumber = line: Incompatible pointer to integer conversion assigning to 'int' from 'id'.
  What am i doing wrong?</p>
  
  <p>Message was edited by Sounddesigner on 3/8/12 at 3:05 PM</p>