title: Adding text field dynamically when clicked on button in Objective-C
body: <p>I have a text field with button pickerView functionality.</p>
  
  <pre><code>if(pickerView==selectItemListPickerView)
  {
      selectITemListTxtFld.text = [itemListSplitDisplayArray objectAtIndex:row];
  }
  </code></pre>
  
  <p>Now I want to display this functionality in another dynamically created text field each time when I click on add button. I tried it like this.</p>
  
  <pre><code>    UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(18, 350, 309, 35)];
      textField.borderStyle = UITextBorderStyleRoundedRect;
      textField.font = [UIFont systemFontOfSize:15];
      textField.keyboardType = UIKeyboardTypeDefault;
      textField.returnKeyType = UIReturnKeyDone;
      textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
      textField.delegate = self;
      textField.tag = 44;
      [self.view addSubview:textField];
  </code></pre>
  
  <p>Like this I am getting only one text field dynamically. So please do the needful.</p>