title: iOS UITextField keep keyboard on the screen
body: <p>I don't have the "[sender resignFirstResponder]" method called, but my keyboard still closes when the done button is pressed. I need it to stay open, even when I click done. How can I go about doing this?</p>
  
  <p>Here's my action that controls the keyboard:</p>
  
  <pre><code>- (IBAction)returnKeyButton:(id)sender {
  
  BOOL guessCorrect = [gameModel checkGuess:guessTextField.text];
  
  guessTextField.text = @"";
  
  if (guessCorrect) {
      CFBundleRef mainBundle = CFBundleGetMainBundle();
      CFURLRef soundFileURLRef;
      soundFileURLRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @"rightAnswer", CFSTR ("mp3"), NULL);
  
  
      UInt32 soundID;
      AudioServicesCreateSystemSoundID(soundFileURLRef, &amp;soundID);
      AudioServicesPlaySystemSound(soundID);
      if (gameModel.score == 10) {
          CFBundleRef mainBundle = CFBundleGetMainBundle();
          CFURLRef soundFileURLRef;
          soundFileURLRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @"win", CFSTR ("mp3"), NULL);
  
  
          UInt32 soundID;
          AudioServicesCreateSystemSoundID(soundFileURLRef, &amp;soundID);
          AudioServicesPlaySystemSound(soundID);
  
          [self endGameWithMessage:@"You win!"];
      } else {
          scrambledWord.text = [gameModel getScrambledWord];
      }
  
  }
  remainingTime.text = [NSString stringWithFormat:@"%i", gameModel.time];
  playerScore.text = [NSString stringWithFormat:@"%i", gameModel.score];
  }
  </code></pre>