Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-24-2011, 05:33 PM   #9 (permalink)
Poatface
What?
 
Join Date: Nov 2010
Posts: 5
Poatface is on a distinguished road
Default

A good way to dismiss the keyboard regardless of the context is to call this method:

Code:
[self.view endEditing:YES];
I often create a quick void method in my view controllers which calls this code, and then I can easily dismiss the keyboard whenever I need to. (The "YES" being passed into the method is a boolean for whether or not the method should "force quit" whatever editing mode it tries to close if it is met with resistance.)

Last edited by Poatface; 03-24-2011 at 05:35 PM.
Poatface is offline   Reply With Quote
 

» Advertisements
» Online Users: 398
13 members and 385 guests
asleylq98, Clouds, DaveDee, erdinc27, eski, jacob7khan, jeroenkeij, matador1978, networ, Pudding, sacha1996, sirenum, Vijithasri06
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,595
Threads: 94,084
Posts: 402,781
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Vijithasri06
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:30 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.