Quick Tip - Keyboard and becomeFirstResponder

I found myself in a situation where tapping on a UITextField popped up the keyboard (as you would expect), but I wanted to be able to dimiss the keyboard when a particular button in the interface was tapped. I tried to send the button a becomeFirstResponder: message but that didn't work. Then I found that you have to set the canBecomeFirstResponder property of the button to YES before you can call becomeFirstResponder:.

All UIViews inherit from UIResponder, but some views, such as buttons have the canBecomeFirstResponder property set to NO by default.

Add a Comment...

 

Comments

My brother recommended I might like this website. He used to be totally right. This post truly made my day. You cann't imagine just how much time I had spent for this information! Thanks! - 9/21/2016

Hi there to all, since I am genuinely keen of reading this web site's post to be updated regularly. It carries fastidious data. - 9/17/2016

Though some may not immediately find that out, folks who do use their mobile phones for games aswell may find these presssing problems quite uncomfortable. - 9/16/2016

Great info. Lucky me I ran across your site by accident (stumbleupon). I've book-marked it for later! - 9/12/2016

So that you can explore newer areas and uncover hidden treasures, you will require diamonds. - 9/09/2016

Someone essentially help to make significantly posts I would state. This is the very first time I frequented your web page and thus far? I surprised with the analysis you made to create this actual post incredible. Wonderful job! - 7/16/2017

Hi there just wanted to give you a brief heads up and let you know a few of the pictures aren't loading correctly. I'm not sure why but I think its a linking issue. I've tried it in two different internet browsers and both show the same results. - 7/16/2017

Feb 14, 2015 - Click the link to download mod apk of Boom Beachfront hack on iphone 6 v6.407.2 & have unlimited gems ,gold & elixir& everything unlocked ! - 6/19/2017

This Hack device is exceptionally simple to utilize so you're obtaining limitless Coins as well as Souls, for absolutely free in any kind of regard. - 6/16/2017

However before using our Hay Day Hacking Tool first check out how impressive our device is by reviewing the Qualities we provide listed below, If you want to know even more you rate to read our How to use area and also the Condition of our Device to examine the current hacking condition. - 6/05/2017

Hurdles donnent de plus de l'expérience en plus d'une à half a dozen gemmes k?rester obstacle défrichées. - 4/28/2017

Hello there! I know this is kinda off topic however , I'd figured I'd ask. Would you be interested in trading links or maybe guest writing a blog article or vice-versa? My blog discusses a lot of the same topics as yours and I feel we could greatly benefit from each other. If you're interested feel free to shoot me an email. I look forward to hearing from you! Fantastic blog by the way! - 4/21/2017

Contraseña afin de Boom Seashore hack v2.3 - Cheats tool is awesome app that can be used to gather solutions. - 4/12/2017

Hi there, just wanted to tell you, I enjoyed this article. It was inspiring. Keep on posting! - 4/02/2017

Very quickly this web site will be famous among all blogging and site-building visitors, due to it's pleasant articles - 3/27/2017

Here's ways to turn on Hats Lock in your iPhone. - 3/09/2017

In order to employ our crack simply click the particular button listed below, enter the username as well as the rest will probably be easy. - 3/06/2017

Hi my friend! I wish to say that this article is amazing, great written and come with approximately all vital infos. I'd like to peer more posts like this . - 2/23/2017

VV - 2/22/2017

A different approach overview for Boom Beach, we provide several maps for you to choose your base and also reach enhance your coins. Downloaded your rar and also was an old data, boom beach is currently upgraded when install the apk as well as information, run it and also it requests for upgrade. Does not function ... No new version with free rubies feasible ... Does anyone could modify the most recent variation?! Before you are using this Boom Beach hack, these are a few benefits that - 2/21/2017

Somebody essentially help to make critically articles I'd state. This is the very first time I frequented your website page and thus far? I amazed with the analysis you made to make this particular publish incredible. Excellent job! - 2/20/2017

Our Boom Beach Hack is able to include these: - Unlimited Wood - Unlimited Diamonds - Unlimited Coins. We exist you the Boom Beach Generator for the most recent and also prominent game created by SuperCell, which is also called the developer of Clash of Clans and also Hay Day. Initially input your Tag and also next choose the level of diamonds that you agree to contribute to your checking account. Few days back, we hacked the way that Boom Beach is receiving and also sending demand fr - 2/15/2017

the big apple Archdiocese kicks off religious Mergers this has been a psychological day's reckoning Friday to work with those district church buildings in town. these people closing their whole cupboard doors factored in a wrenching reorganization through Archdiocese of new york. NY1's Erin Clarke lodged CHNLove this simple list submit. another bulk with all the Shrine society associated street. Ann on the Bronx offers succeeded complete with hugs and then tears from the parishioners reall - 2/04/2017

Hello there, I discovered your blog by using Google whilst seeking a similar subject, your site got here up, it appears good. I've bookmarked it during my google bookmarks. Hi there, just changed into alert to your blog via Google, and found that it really is really informative. I am going to be mindful for brussels. I am going to appreciate in case you continue this from now on. A lot of other people will likely be benefited from your writing. Cheers! - 12/30/2016

Peculiar article, totally what I was looking for. - 12/26/2016

After the rubies and coins are included into your account, you do not have to worry about receiving suspensions or bans thanks to our restriction avoidance system. - 12/12/2016

Supercell Business headquarters is situated in Helsinki, Finland which has 132 staff members working day and night to bring finest video game in the sector. - 12/02/2016

So if you want Hay Day Cheats for free rubies, then you might wish to take into consideration the following pointers. - 11/10/2016

I visited several web pages except the audio quality for audio songs present at the website is really marvelous. - 10/02/2016

Construct and carry occurring your card variety taking into consideration the Clash Royale Enjoyed ones collectively in the area of lots of your preferred Clash soldiers, spells as well as defenses. - 1/28/2017