How to hide the keyboard when empty area is touched on iphone?

Here's a step by step for it: Add an IBAction to your view controller, such as - (IBAction)backgroundTouch:(id)sender In the backgroundTouch action, you need to send the resignFirstResponder message to all of the text boxes in your view. This is unfortunate but necessary since there's currently no way to retrieve the object that currently has FirstResponder status. It should look something like this: (IBAction)backgroundTouch:(id)sender { someTextBox resignFirstResponder; anotherTextBox resignFirstResponder; } Add a button control to the view, size it to cover the entire visible area (except for the status bar or any tab or navigation controllers).

Select the button and then go to the Layout Menu and select Send To Back. Also set the button's Type to custom, which is invisible if you don't specifically supply any drawing code for it Connect the Button's Touch Up Inside event to the backgroundTouch: action and try it out.

Here's a step by step for it: Add an IBAction to your view controller, such as - (IBAction)backgroundTouch:(id)sender In the backgroundTouch action, you need to send the resignFirstResponder message to all of the text boxes in your view. This is unfortunate but necessary since there's currently no way to retrieve the object that currently has FirstResponder status. It should look something like this: - (IBAction)backgroundTouch:(id)sender { someTextBox resignFirstResponder; anotherTextBox resignFirstResponder; } Add a button control to the view, size it to cover the entire visible area (except for the status bar or any tab or navigation controllers).

Select the button and then go to the Layout Menu and select Send To Back. Also set the button's Type to custom, which is invisible if you don't specifically supply any drawing code for it. Connect the Button's Touch Up Inside event to the backgroundTouch: action and try it out.

Thank you...let me have a try – Neo Wu May 3 '09 at 2:27 many thx ... it works – Neo Wu May 4 '09 at 6:06 17 Short cut found on another post: self. View endEditing:YES; will end editing in all subviews and resign first responder. Its a lot more clear than enumerating all of your text boxes and won't break when you add fields later!

– Peter DeWeese Sep 2 '10 at 16:37 Thanks to tScan for elaboration and Many Thanks to Peter to share the shortcut with us! – Guru Mar 29 at 7:02 +! For a nicely explained tutorial!

Worked perfectly :) – Ibz Apr 4 at 7:33.

There's a tutorial about that problem (also concerning the numerical keyboard with no DONE key) over here.

I was having this problem too, it was very annoying. But I figured out how to get rid of the keyboard on accident. Say you are texting John, and there's a keyboard in the way from you viewing your conversations and therefore reducing the screen you can see.

Well then click on messages in the uppwer left, then select a different person you have a record of texting with, then hit messages again in the upper left. Then go back and select John. No you're back at the conversation with John, by the keyboard is gone.

Seams like a lot but it's pretty quick. You'd think they'd just put a hide button to on the keyboard lol Hope that helps, or was clear enough.

Add a button control to the view, size it to cover the entire visible area (except for the status bar or any tab or navigation controllers). Select the button and then go to the Layout Menu and select Send To Back. Also set the button's Type to custom, which is invisible if you don't specifically supply any drawing code for it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions