sohel14_cse_ju
sohel14_cse_ju

Reputation: 2521

Iphone Simulator Onscreen Keyboard Issue

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

Upvotes: 0

Views: 1158

Answers (1)

Krishnabhadra
Krishnabhadra

Reputation: 34265

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

Upvotes: 2

Related Questions