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 05-30-2009, 04:21 PM   #9 (permalink)
therisingdeepak
New Member
 
Join Date: May 2009
Posts: 1
therisingdeepak is on a distinguished road
Thumbs up iphone Dev Done Key

So You want to add a 'Done' key on iphone , do some specific stuff and make the keywork Invisible .. Then Do the following step.

The Steps below is for when u use Nib file.



1. Open NIb file .. Cliick on view and click on the textbox u want to change the keyboard behavior .

2. Open 'Inspector' from the tool menu and change the return key type to 'done'

3. Go to Connection inspector and change the 'delegate' to file owner of the View Controller ( click on + sign and drag to the File's owner )

4. Create a new method in File owner Controller -(IBAction) pressDoneKey and implement this method

- (IBAction)pressDoneKey
{

[txtClient resignFirstResponder];
return YES;
}

where txtClient is a textfield ..



like this



#import <UIKit/UIKit.h>


@interface ClientGoViewController : UIViewController {

IBOutlet UITextField *txtClient;

}

@property (nonatomic, retain) IBOutlet UITextField *txtClient;

-(IBAction) pressDoneKey;

@end



and U r good to go


Visit Deepak Dhakal..Not that personal | This is about Me, .NET and iPhone Code for more Iphone stuff
Done Key in iPhone keyBoard
therisingdeepak is offline   Reply With Quote
 

» Advertisements
» Online Users: 494
22 members and 472 guests
7twenty7, apatsufas, baja_yu, buggen, chenpo, ChrisYates, ilmman, iOS.Lover, IphoneSdk, jbro, jeroenkeij, jNoxx, Kirkout, PavelMik, RobTaku, rraagg, samdanielblr, swelsh, taylor202, TheStalker, Trickphotostudios, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,636
Threads: 94,098
Posts: 402,804
Top Poster: BrianSlick (7,990)
Welcome to our newest member, samdanielblr
Powered by vBadvanced CMPS v3.1.0

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