title: Accessing a UITextField from an array in Objective-C
body: <p>I have 4 UITextFields that I'm dynamically creating, in the viewDidLoad, which works good.  I want to reference those objects when the UISlider value changes.  Right now I'm storing those objects in a NSMutableArray and accessing them like so from the sliderChanged method:</p>
  
  <pre><code>    NSInteger labelIndex = [newText intValue];
  labelIndex--;
  
  NSUInteger firstValue = (int)0;
  
  NSMutableArray *holeArray = [pointsArray objectAtIndex:labelIndex];
  UITextField *textField = [textFieldArray objectAtIndex:firstValue];
  NSString *newLabel1Text = [[NSString alloc] initWithString:[[holeArray objectAtIndex:firstValue] stringValue]];
  
  [textField setText: newLabel1Text];
  
  [newLabel1Text release];
  </code></pre>
  
  <p>Everything is working good, but the program crashes on the setText: method.  The last message I get from the program is: [UILabel drawTextInRect:]  and then I get a EXC_BAD_ACCESS failure.  </p>
  
  <p>I want to be able to acces that dynamically created UITextField, but I must be going about it the wrong way.  </p>
  
  <p>Thanks!</p>