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-15-2011, 08:48 AM   #14 (permalink)
Mandar
Registered Member
 
Join Date: Mar 2011
Posts: 4
Mandar is on a distinguished road
Default

Quote:
Originally Posted by therisingdeepak View Post
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



HI,
This works fine with the other types of key board. But when we use keyboard type number pad, then doing above process does not brought the "Done key" in number pad. so how could we hide it?
Mandar is offline   Reply With Quote
 

» Advertisements
» Online Users: 387
14 members and 373 guests
alexeir, asleylq98, DaveDee, erdinc27, eski, gogoman, lionelnlex, matador1978, networ, Pudding, sacha1996, Sami Gh, 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:24 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.