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 02-06-2009, 03:24 AM   #17 (permalink)
nirmala1982
New Member
 
Join Date: Feb 2009
Posts: 3
nirmala1982 is on a distinguished road
Default Can Somebody tell me how to dismiss keyboard on click of UITextField

Can Somebody tell me how to dismiss keyboard on click of UITextField which i created in interface builder because i want to select data from the UIPickerView to fill the UITextField instead of typing the text from the keyboard



Quote:
Originally Posted by incorrect.user View Post
To hide a keyboard u need just to setup a callback (i.e. IBAction) for the event "Did End On Exit" of UITextField in the InterfaceBuilder. So make ur UITextField an IBOutlet and put an empty IBAction as a callback for "Did End On Exit". That's all.

Like this:

//header

@interface MyView : UIView
{
IBOutlet UITextField *name;
}

- (IBAction)doneButtonOnKeyboardPressed: (id)sender;

//m-file

@implementation MyView

- (IBAction)doneButtonOnKeyboardPressed: (id)sender
{}

@end
nirmala1982 is offline   Reply With Quote
 

» Advertisements
» Online Users: 455
17 members and 438 guests
apatsufas, brainspoon, buenasuerte, CMSLdesign, Dimpleppanchal, dre, Evilelement, Gaz, ilmman, iphonedevshani, Kieren Harrold, LegionMD, MAMN84, monu_rastogi, QuantumDoja, Robiwan, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,614
Threads: 94,086
Posts: 402,793
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kurtroom
Powered by vBadvanced CMPS v3.1.0

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