title: Xcode: UIPickerView Text & View Controller Link Up
body: <p>I have created two view controllers in XCode along with a UIPickerView, a label, a text view. I wanted to try and get data from the UIPickerView, so when the app detects that a row has been selected, it will automatically set the label to the value of the row in the UIPickerView. I also wanted certain descriptions for certain selected rows.</p>
  
  <p>See some screenshots of my app here to further understand what it is I am trying to do;</p>
  
  <p>1) <a href="http://cl.ly/102K3p2v433N0F1c0m2i" rel="nofollow">http://cl.ly/102K3p2v433N0F1c0m2i</a> - main screen</p>
  
  <p>2) <a href="http://cl.ly/102K3p2v433N0F1c0m2i" rel="nofollow">http://cl.ly/102K3p2v433N0F1c0m2i</a> - selected row after lever has been "pulled"</p>
  
  <p>3) <a href="http://cl.ly/2d1D2D1Z1s0k053Z2C3H" rel="nofollow">http://cl.ly/2d1D2D1Z1s0k053Z2C3H</a> - view controller pops up but the label/description still have default values</p>
  
  <p>Here is my code;</p>
  
  <p>1) (MAIN SCREEN) TroubleMakerViewController.h - <a href="http://pastie.org/2466793" rel="nofollow">http://pastie.org/2466793</a></p>
  
  <p>2) (MAIN SCREEN) TroubleMakerViewController.m - <a href="http://pastie.org/2466795" rel="nofollow">http://pastie.org/2466795</a></p>
  
  <p>3) (RESULTS SCREEN) Results.h - <a href="http://pastie.org/2466805" rel="nofollow">http://pastie.org/2466805</a></p>
  
  <p>4) (RESULTS SCREEN) Results.m - <a href="http://pastie.org/2466808" rel="nofollow">http://pastie.org/2466808</a></p>
  
  <p>Can somebody explain why the label and description text is showing the default text rather than what I have set it to do? Everything is linked up properly in the XIB files.</p>