title: Different strange behaviour withUIPickerView selectedRowInComponent in iOS5
body: <p>I have a strange thing happening with my app now after iOS5 updates.</p>
  
  <p>I have a UIPickerView and use <code>[customPickerView selectedRowInComponent:0]</code> to get the picked component. The user picks the second row (with index 1)</p>
  
  <p>So it looks like:</p>
  
  <pre><code>i = [customPickerView selectedRowInComponent:0];   // -&gt; i is 1 here, is OK!
  [smsAgent  sendSMS:smsTxt]; //just call another method to send a SMS
  </code></pre>
  
  <p>The value of <code>i</code> is OK when checking.
  Now I just call a the normal SMS dialogue <code>smsAgent</code> which looks essentially like this:</p>
  
  <pre><code>smsAgent...
        MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
        picker.messageComposeDelegate = delegate;
        picker.recipients =[NSArray arrayWithObject: myTelNumber];  
        [delegate presentModalViewController:picker animated:YES];
  </code></pre>
  
  <p>certainly not doing anything to my picker.</p>
  
  <p>But when this "returns" in </p>
  
  <pre><code>    - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result {
          [self dismissModalViewControllerAnimated:NO]; //take away the SMS screen fast, so we can send selectModeVCDidFinish to take away ourselves
          int j = [customPickerView selectedRowInComponent:0];
          [self.delegate selectModeVCDidFinish: selectedMode];
  }
  </code></pre>
  
  <p>the value <strong>j is 0 again, not 1</strong>!</p>
  
  <p>For sure nothing happens to the customPickerView - I am really puzzled - what's going on here?</p>
  
  <p>Before updating to iOS5 there was no problem whatsoever.</p>
  
  <p>Is there something that I missed?</p>
  
  <p>Many thanks</p>