Question

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

Was it helpful?

Solution

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..)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top