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

Thread: iPhone Keyboard
View Single Post
Old 05-03-2009, 04:01 AM   #4 (permalink)
SkyTrix
Registered Member
 
Join Date: Feb 2009
Location: Belgium
Posts: 106
SkyTrix is on a distinguished road
Default

First you need to add the delegate to your viewController or class. So in your header file:

From this:
@interface FirstViewController : UIViewController {

To this:
@interface FirstViewController : UIViewController <UITextFieldDelegate> {

Than, in your .m file, create this method:

Code:
- (BOOL)textFieldShouldReturnUITextField *)textField
{
    [self myMethodToRun];
    return YES;
}
That's just from the top of my head, but I think it'll work
SkyTrix is offline   Reply With Quote
 

» Advertisements
» Online Users: 453
17 members and 436 guests
acegames, buggen, ChrisYates, ClerurcifeDer, e2applets, EvilElf, fredidf, gdogdev, guusleijsten, iAppDeveloper, jessicagx69, kevinbertman, muhimranss, pbart, SLIC, Wikiboo, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,637
Threads: 94,101
Posts: 402,820
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jessicagx69
Powered by vBadvanced CMPS v3.1.0

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