質問

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

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top