Iphone Simulator Onscreen Keyboard Issue

1.1k views Asked by At

I am making a Login Screen for my ViewBased Application.I am having a problem, when i click on the UITextField the onscreen screen pops up as it should. But when i am done with typing the Onscreen Keyboard is not removing from the screen.

Can any one suggest me how can i solve this issue?

Thanks in advance

1

There are 1 answers

1
Krishnabhadra On BEST ANSWER

set the delegate of the UITextField to ViewController class. Override textfieldShouldReturn and call resignFirstResponder...

- (BOOL)textFieldShouldReturn:(UITextField *)textField {
  [textField resignFirstResponder];
  return NO;
}

EDIT:

After seeing the comment It seems you are a beginner...This blog post tells about UITextField and delegates..Also when you have time, please read this post too (to learn about protocols and delegates..)