title: Some time cannot hide iOS keyboard and show UIPickerView
body: <p>This is my <code>.h</code></p>
  
  <pre><code>xxxx : UIViewController&lt;UITextFieldDelegate&gt;
  </code></pre>
  
  <p>and my <code>.m</code></p>
  
  <pre><code>UITextField *quarterPicker = [[[UITextField alloc] init] autorelease];
  [quarterPicker setFrame:CGRectMake(150, 370, 60, 30)];
  [quarterPicker setText: @"Q1"];
  quarterPicker.delegate = self;
  </code></pre>
  
  <p>and i use</p>
  
  <pre><code>-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
       NSLog(@"textFieldShouldBeginEditing"); 
      [textField resignFirstResponder];
      [textField addTarget:self action:@selector(selectQuarterPicker:) forControlEvents:UIControlEventTouchDown];
      return NO;  // Hide both keyboard and blinking cursor.
  }
  </code></pre>
  
  <p>When i touch to my textField, i alway see this log <code>textFieldShouldBeginEditing</code> </p>
  
  <p>But some time, my Picker doesn't show. I use : <a href="https://github.com/TimCinel/ActionSheetPicker" rel="nofollow">https://github.com/TimCinel/ActionSheetPicker</a> to make Picker. </p>
  
  <p>I find out that, when i swipe my textFiled, my picker will display.</p>
  
  <p>How can i fix this?</p>
  
  <p><strong>UPDATE:</strong> i put my <code>UITextFiled</code> insite <code>UIScrollView</code></p>