title: UITextField in ScrollView doesnt display keyboard in iOS
body: <p>I have 10 textfield in a <code>UIView</code>, and I have added the view to a <code>scrollView</code>. In that 5 textFields will be displayed, and other will be scrolled.  </p>
  
  <p>In my <code>textFieldDidBeginEditing</code>  </p>
  
  <pre><code>-(void)textFieldDidBeginEditing:(UITextField *)textField
  {
      if (textField.tag&gt;=4)
      {
          CGRect viewframe=contentsOfView.frame;
          viewframe.origin.y=viewframe.origin.y-100;
          contentsOfView.frame=viewframe;
  
      }
  }
  </code></pre>
  
  <p>And in my <code>textFieldDidEndEditing</code></p>
  
  <pre><code>-(void)textFieldDidEndEditing:(UITextField *)textField
  {
  
      if(textField.tag&gt;=4)
      {
          CGRect viewframe=contentsOfView.frame;
          viewframe.origin.y=viewframe.origin.y+100;
          contentsOfView.frame=viewframe;
      }
  
  }
  </code></pre>
  
  <p>The first 5 fields which are getting displayed in the screen works perfectly, if I scroll the screen for the next text field. If I tap in it, the keyboard doesnt appears.</p>
  
  <pre><code>[contentsOfView addSubview:nameField];
  [contentsOfView addSubview:mobileNumberField];
  [contentsOfView addSubview:passwordField];
  [contentsOfView addSubview:taxiNumberfield];
  [contentsOfView addSubview:emailIdField];
  [contentsOfView addSubview:taxiTypeField];
  [contentsOfView addSubview:licenseNumber];
  [contentsOfView addSubview:nricNumber];
  [contentsOfView addSubview:noOfPassengerField];
  [contentsOfScrollView addSubview:contentsOfView];
   [self.view addSubView:contentScrollView ];
  </code></pre>
  
  <p>TextField</p>
  
  <pre><code> nameField.borderStyle=UITextBorderStyleLine;
  nameField.layer.borderWidth=1.0;
  nameField.layer.borderColor=[[HexColorCode colorWithHexastring:@"c88202" ] CGColor];
  nameField.keyboardType=UIKeyboardTypeNamePhonePad;
  nameField.placeholder=@"NAME";
  nameField.backgroundColor=[UIColor whiteColor];
   UIView *  paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 15, 20)];
  nameField.leftView = paddingView;
  nameField.leftViewMode = UITextFieldViewModeAlways;
  nameField.contentVerticalAlignment=UIControlContentVerticalAlignmentCenter;
  nameField.delegate=self;
  nameField.tag=1;
  </code></pre>