title: Return first character of string in NSArray for UIPickerView didSelectRow
body: <p>I have a <code>UIPickerView</code> which returns an <code>NSArray</code> with 4 <code>strings</code>. When the user scrolls the <code>UIPickerView</code>, a <code>UITextField</code> gets updated with the selected row. I would like to return the first character of each <code>string</code> in the <code>NSArray</code> and update the <code>UITextField</code> with that character. </p>
  
  <p>As you can see from my code, I have tried to achieve this functionality by using <code>self.noiseLevelArray = [noiseArray sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];</code>, which I found on a few different stack overflow questions.</p>
  
  <p>Here is the code for the picker:</p>
  
  <pre><code>// Noise picker
  self.noisePicker = [[UIPickerView alloc]init];
  [noisePicker setDataSource:self];
  [noisePicker setDelegate:self];
  self.noiseArray = [[NSArray alloc]initWithObjects:@"4: Extreme Noise (Impossible)", @"3: Very Noisy (Loud Shouting)", @"2: Noisy (Shouting)", @"1: Not Noisy (Normally)", nil];
  //self.noiseLevelArray = [noiseArray sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
  
  // Call noisePicker method
  [self noisePickerTextField];
  </code></pre>
  
  <p>Here is the code for my picker:</p>
  
  <pre><code>// Picker components
  - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView {
      return 1;
  }
  
  - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
      return [noiseArray count];
      //return [noiseLevelArray count];
  }
  
  - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
      return [noiseArray objectAtIndex:row];
      //return [noiseLevelArray objectAtIndex:row];
  }
  
  - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
      NSString *noiseString = [[NSString alloc]initWithFormat:@"%@", [noiseArray objectAtIndex:row]];
      //NSString *noiseString = [noiseLevelArray objectAtIndex:0];
      if ([self.empNoise1 isFirstResponder]) {
          self.empNoise1.text = noiseString;
      }
      else if ([self.empNoise2 isFirstResponder]) {
          self.empNoise2.text = noiseString;
      }
  ...
  </code></pre>
  
  <p>As you can see, the <code>UITextField</code> gets updated with the full <code>string</code> of whichever row is selected in the <code>UIPickerView</code>. I would like it to still display the full <code>string</code>, but update the <code>UITextField</code> with the first character only (in this case <code>1, 2, 3, or 4</code>). Any help is much appreciated!</p>