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 > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 05-12-2011, 03:16 AM   #1 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Unhappy DONE button on Default Pad

This is a repeat thread, because I'm getting no feedback on the SDK Development Forum. Sorry if I offend the forum's compliance officer.

I need some help please...

I'm getting the DONE button to appear on my Number pad. However I have other text fields displaying the Default pad.

My problem is the DONE button works great on the Number Pad, but then displays on the Default Pad as well.

This is what I have done:

I instantiate the responders in my ViewDidLoad:

Code:
//Add observers for the respective notifications (depending on the os version)
	if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2) {
		[[NSNotificationCenter defaultCenter] addObserver:self 
												 selector:@selector(keyboardDidShow:) 
													 name:UIKeyboardDidShowNotification 
												   object:nil];	
		[[NSNotificationCenter defaultCenter] addObserver:self 
												 selector:@selector(keyboardWillHide:) 
													 name:UIKeyboardWillHideNotification 
												   object:nil];
	} else {
		[[NSNotificationCenter defaultCenter] addObserver:self 
												 selector:@selector(keyboardWillShow:) 
													 name:UIKeyboardWillShowNotification 
												   object:nil];
		[[NSNotificationCenter defaultCenter] addObserver:self 
												 selector:@selector(keyboardWillHide:) 
													 name:UIKeyboardWillHideNotification 
												   object:nil];
	}
My text delegate then updates a Boolean switch (addDone) when it starts editing so I know when to draw the DONE button or not:

Code:
#pragma mark -
#pragma mark UITextFieldDelegate methods
- (void)textFieldDidBeginEditing:(UITextField *)textField {
	
	//if editing textfields, then do not add DONE button
	if (AccountNameField.editing || BankField.editing ) {
		addDone = NO;
	}else
		addDone = YES;
	
}
The responders then run through the various methods instantiated:

Code:
#pragma mark -
#pragma mark DONE button
- (void)keyboardWillShow: (NSNotification *)note {
	if(addDone == NO){
		[doneButton removeFromSuperview];
		doneButton = nil;
		return;
	}else{
		if ([[[UIDevice currentDevice] systemVersion] floatValue] < 3.2) {
			[self performSelector:@selector(addHideKeyboardButtonToKeyboard) withObject:nil afterDelay:0];
			
		}
	}	
}
- (void)keyboardDidShow:(NSNotification *)note {	
	if(addDone == NO){
		[doneButton removeFromSuperview];
		doneButton = nil;
		return;
	}else{
		if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2) {
			[self performSelector:@selector(addHideKeyboardButtonToKeyboard) withObject:nil afterDelay:0];
		}
	}
}
- (void)keyboardWillHide:(NSNotification *)note {
	if(addDone == YES){
		[doneButton removeFromSuperview];
		doneButton = nil;
		addDone = NO;
	}	
}
- (void)addHideKeyboardButtonToKeyboard {
	// Locate non-UIWindow.
	UIWindow *keyboardWindow = nil;
	for (UIWindow *testWindow in [[UIApplication sharedApplication] windows]) {
		if (![[testWindow class] isEqual:[UIWindow class]]) {
			keyboardWindow = testWindow;
			break;
		}
	}
	if (!keyboardWindow) return;
	
	// Locate UIKeyboard.  
	UIView *foundKeyboard = nil;
	for (UIView *possibleKeyboard in [keyboardWindow subviews]) {
		
		// iOS 4 sticks the UIKeyboard inside a UIPeripheralHostView.
		if ([[possibleKeyboard description] hasPrefix:@"<UIPeripheralHostView"]) {
			possibleKeyboard = [[possibleKeyboard subviews] objectAtIndex:0];
		}                                                                                
		
		if ([[possibleKeyboard description] hasPrefix:@"<UIKeyboard"]) {
			foundKeyboard = possibleKeyboard;
			break;
		}
	}
	
	if (foundKeyboard) {
		
		[self addButtonToKeyboard];
	}
}
- (void)addButtonToKeyboard {
	// create custom button
	doneButton = [UIButton buttonWithType:UIButtonTypeCustom];
	doneButton.frame = CGRectMake(0, 163, 106, 53);
	doneButton.adjustsImageWhenHighlighted = NO;
	if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.0) {
		[doneButton setImage:[UIImage imageNamed:@"DoneUp3.png"] forState:UIControlStateNormal];
		[doneButton setImage:[UIImage imageNamed:@"DoneDown3.png"] forState:UIControlStateHighlighted];
	} else {        
		[doneButton setImage:[UIImage imageNamed:@"DoneUp.png"] forState:UIControlStateNormal];
		[doneButton setImage:[UIImage imageNamed:@"DoneDown.png"] forState:UIControlStateHighlighted];
	}
	[doneButton addTarget:self action:@selector(doneButton:) forControlEvents:UIControlEventTouchUpInside];
	// locate keyboard view
	UIWindow* tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1];
	UIView* keyboard;
	for(int i=0; i<[tempWindow.subviews count]; i++) {
		keyboard = [tempWindow.subviews objectAtIndex:i];
		// keyboard found, add the button
		if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2) {
			if([[keyboard description] hasPrefix:@"<UIPeripheralHost"] == YES)
				[keyboard addSubview:doneButton];
		} else {
			if([[keyboard description] hasPrefix:@"<UIKeyboard"] == YES)
				[keyboard addSubview:doneButton];
		}
	}
	
}
I'm going crazy. The logic seems right, yet that damn DONE button keeps appearing. Even when I trace it gets to a point on the Default Pad where it follows through and ignores the DONE methods...then displays HEX so I have to fast forward...

Thanks in advance. This has been niggling me too long.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-12-2011, 04:16 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

I would start putting some NSLog, to understand if addDone has the right value in each method. (in case it is modified by someone in some case)
__________________

Last edited by dany_dev; 05-12-2011 at 04:19 AM.
dany_dev is offline   Reply With Quote
Old 05-12-2011, 04:42 AM   #3 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by dany_dev View Post
I would start putting some NSLog, to understand if addDone has the right value in each method. (in case it is modified by someone in some case)
Hi Danny,

I tried that. I have logged everywhere. Trace through and all responders, whether addDone has the correct value at each step and it does, which means the text delegate is setting addDone correctly.

Code:
- (void)keyboardWillShow: (NSNotification *)note {
	if(addDone == NO){
		[doneButton removeFromSuperview];
		doneButton = nil;
		return;
	}else{
		if ([[[UIDevice currentDevice] systemVersion] floatValue] < 3.2) {
			[self performSelector:@selector(addHideKeyboardButtonToKeyboard) withObject:nil afterDelay:0];
			
		}
	}	
}
- (void)keyboardDidShow:(NSNotification *)note {	
	if(addDone == NO){
		[doneButton removeFromSuperview];
		doneButton = nil;
		return;
	}else{
		if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2) {
			[self performSelector:@selector(addHideKeyboardButtonToKeyboard) withObject:nil afterDelay:0];
		}
	}
}
- (void)keyboardWillHide:(NSNotification *)note {
	if(addDone == YES){
		[doneButton removeFromSuperview];
		doneButton = nil;
		addDone = NO;
	}	
}
The weirdest is it traces through and ignores the DONE button creation based on the field I am editing (which uses the Default pad). I then pop to the simulator at the end of the method - pointer on closing } and the Default pad still has no DONE button.
At this point when I step through it runs into assembler stuff. So I then fast forward on the debugger and the DONE button redisplays.

I'm baffled with this. The code looks right to me.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-12-2011, 07:03 AM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

mmm.......set up a project, I can't grant to download and try, but maybe can be usefull also to others that want to help.
__________________
dany_dev is offline   Reply With Quote
Old 05-12-2011, 07:25 AM   #5 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by dany_dev View Post
mmm.......set up a project, I can't grant to download and try, but maybe can be usefull also to others that want to help.
I have now switched off the DONE button at every stage. I have addDone logs throughout and they all say addDone is NO. The button does not display until I fast forward in the debugger once it has processed through keyboardDidShow (which is the very last method processed before it displays). All the way to that point addDone is NO.

This DONE button topic is a widespread topic. I think the lazy answer is to create a big button and just press anywhere on the screen. I tend to be emphatic about the user's experience and so believe these small things must be sorted.
No one seems to have a final solution. I'm trying one where I have Numeric pad and other Pads in the same view controller, plus I have a private delegate doing a whole bunch. If we get this right, then I would be happy to present the final solution and close the DONE button topic until Apple finally embeds this into the core SDK build.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-12-2011, 09:55 AM   #6 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

ok, however i mean a project sample of the not working project.....so that if someone want try to help you, can do it.
__________________
dany_dev is offline   Reply With Quote
Old 05-12-2011, 10:55 AM   #7 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by dany_dev View Post
ok, however i mean a project sample of the not working project.....so that if someone want try to help you, can do it.
I will do that tomorrow and keep this thread open for others to follow.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-12-2011, 12:20 PM   #8 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Talking

Quote:
Originally Posted by dany_dev View Post
ok, however i mean a project sample of the not working project.....so that if someone want try to help you, can do it.
Ok...I slapped together a quick project using the same code (cut and paste) and it works perfectly. Mystery!

For those of you who need a DONE button to work on Numpad with a view that also uses other keyboards just let me know and I will email the code. The code above does work, but sometimes it is better having it in a project. I will remain on this thread so I can help.

Thanks Dany!!!...now I need to find my gremlin.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™

Last edited by ManWithMask; 05-12-2011 at 12:30 PM.
ManWithMask is offline   Reply With Quote
Old 05-12-2011, 12:22 PM   #9 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

nice!

ps: dany non danny
__________________
dany_dev is offline   Reply With Quote
Old 05-13-2011, 04:03 AM   #10 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Hi Dany...I'm back. This does not actually work.

It worked because my 1st field I clicked was a numpad.

I decided to add 2 text fields.

The keyboard responds (NSNotification responder) on the first field I enter and after that entirely ignores the NSNotification. It is like they switched off.

I can email the project. Perhaps there is something you can work out. I have checked and I'm not releasing the observers (or at least I think so).
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-13-2011, 05:52 AM   #11 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Angry NSNotification:UIKeyboardDidShowNotification

Hi Dany

I think I may have the culprit nailed down. All the DONE key solutions work, because the samples I have seen only have one field on the screen.

In the real world this is not the case.

NSNotification:UIKeyboardDidShowNotification only responds once on a view the first time it sees a keyboard. It does not respond each time you enter a new field and the keyboard pops up again.

This might require an entirely different strategy (like when is Apple going to fix this).

Thoughts please?
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-13-2011, 07:17 AM   #12 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Code:
- (void)textFieldDidBeginEditing:(UITextField *)textField
UITextFieldDelegate Protocol Reference
__________________
dany_dev is offline   Reply With Quote
Old 05-13-2011, 07:31 AM   #13 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Question

Quote:
Originally Posted by dany_dev View Post
Code:
- (void)textFieldDidBeginEditing:(UITextField *)textField
UITextFieldDelegate Protocol Reference
Si. That was the first thing I did. Removed the NSNotifier and called the method to create the button if editing the numpad fields else return. I'm still playing with that option. I have in the mean time added another post, which has the code.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-13-2011, 07:39 AM   #14 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

what's the problem to set addDone = YES; if the textfield is one of the numpad and addDone =NO; if not it is.
__________________
dany_dev is offline   Reply With Quote
Old 05-13-2011, 08:08 AM   #15 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by dany_dev View Post
what's the problem to set addDone = YES; if the textfield is one of the numpad and addDone =NO; if not it is.
Check the new post I created.

The problem is that the UIKeyboardDidShowNotification only responds the first time a keyboard is displayed in a view. After that it ignores (or at least my code works that way - but I think it is right).

All the Done samples about only do it with one field. The problem is when you have several and they are not all num pads. So we user clicks on another num pad if the first field you brought up the keyboard was a numpad, then it looks perfect. However, clicking on another pad will also bring up the Done (because it does not respond to the notification method again).
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-13-2011, 08:12 AM   #16 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

for me is not clear, are you using

Code:
- (void)textFieldDidBeginEditing:(UITextField *)textField
or not? if not, you are trying another solution, not what i adviced you in the last post.

Why i should continue on another thread?
__________________
dany_dev is offline   Reply With Quote
Old 05-13-2011, 08:17 AM   #17 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by dany_dev View Post
for me is not clear, are you using

Code:
- (void)textFieldDidBeginEditing:(UITextField *)textField
or not? if not, you are trying another solution, not what i adviced you in the last post.

Why i should continue on another thread?
We can stay on this thread.

I am playing with text delegate to see whether it is better. I will let you know.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-14-2011, 11:48 AM   #18 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Hi Dany,

I have managed to get the solution working 99% using NSNotifications. I tried the text delegate, but ran into more problems.

The options are:
1. User click on the DONE buttons for either pad to close that pad each time they move from field to field, then it works 100%.

2. User clicks on the next field without first clicking on the DONE button, then the NSNotification will not observe any keyboard changes and then it will not work.

Perhaps you can see a way around this. I have reached my limits.

I am attaching the complete code.
Attached Files
File Type: zip Done.zip (94.5 KB, 4 views)
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-15-2011, 11:35 AM   #19 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

from what I see your solution work in 0% of cases without click done.

However here the solution

Code:
- (void)textFieldDidBeginEditing:(UITextField *)textField {
       
    if(textField == mynumberField){
        addDone = YES;
        [self keyboardDidShow:nil];

    }
    else {
        addDone = NO;
        [doneButton removeFromSuperview];
        [doneButton release];
        doneButton = nil;
        

    }
}
and remember to retain your button....
Code:
	doneButton = [[UIButton buttonWithType:UIButtonTypeCustom] retain];
__________________

Last edited by dany_dev; 05-15-2011 at 11:40 AM.
dany_dev is offline   Reply With Quote
Old 05-15-2011, 11:48 AM   #20 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by dany_dev View Post
editing...
I got closer by adding a TOUCH DOWN IBAction event on each field.

Code:
-(IBAction)removeKeyboard:(id)sender{
	[self.view endEditing:TRUE];	
}
This dismissed the keyboard so the NSNotifier fires up when user moves between fields.

Better, but still not 100%. Problem with using TOUCH DOWN is that it does get confused if you have a UIScroller embedded over the fields and so does not pick up the TOUCH DOWN. I am at least getting it to respond to the keyboard notifications each time because before when I moved between fields without hitting the DONE button it was not.

The thing is UIScroller is going to be used by many, so it is not perfect.

Will be nice to see if you get closer to a solution.
Attached Files
File Type: zip Done.zip (96.4 KB, 2 views)
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-15-2011, 01:15 PM   #21 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

ehm...have you tried what i wrote in the post before?...
__________________
dany_dev is offline   Reply With Quote
Old 05-15-2011, 01:29 PM   #22 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by dany_dev View Post
ehm...have you tried what i wrote in the post before?...
I will tomorrow.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-16-2011, 02:09 AM   #23 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Talking DONE Button on Number Pad sorted!!!!

Quote:
Originally Posted by ManWithMask View Post
I will tomorrow.
Well done Dany! Thanks so much for your help. This time around we are at 100%. I did a lot of clicking just to make sure the memory leaks are patched.


Delegate works definitely best at retaining and removing the DONE button because these will always be fired up when the cursor hits these fields, whereas that is not the case with NSNotifications, unless you have removed the keyboard, else it assumes it is there and so why do anything.

I also added a UIScroller just to show how nicely it works. The only XIB action we need to attach is for when user presses the DONE button on the default keyboard (nothing new and there are plenty of tutorials on that subject).

Finally I think we can say we have the best solution for the DONE button on the number pad because:
1. It works across all iOS versions;
2. Works with textfields;
3. Works with many fields;
4. Works with UIScroller embedded because their is no need for TOUCH DOWN.

Thanks Dany once again!

For the rest, I am attaching the complete sample application. Hopefully you will all find the answers sooner than I did.
Attached Files
File Type: zip Done.zip (96.9 KB, 7 views)
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-16-2011, 03:05 AM   #24 (permalink)
Registered Member
 
ManWithMask's Avatar
 
Join Date: Mar 2010
Location: Stellenbosch, South Africa
Posts: 88
ManWithMask is on a distinguished road
Send a message via Skype™ to ManWithMask
Default

Quote:
Originally Posted by ManWithMask View Post
Well done Dany! Thanks so much for your help. This time around we are at 100%. I did a lot of clicking just to make sure the memory leaks are patched.


Delegate works definitely best at retaining and removing the DONE button because these will always be fired up when the cursor hits these fields, whereas that is not the case with NSNotifications, unless you have removed the keyboard, else it assumes it is there and so why do anything.

I also added a UIScroller just to show how nicely it works. The only XIB action we need to attach is for when user presses the DONE button on the default keyboard (nothing new and there are plenty of tutorials on that subject).

Finally I think we can say we have the best solution for the DONE button on the number pad because:
1. It works across all iOS versions;
2. Works with textfields;
3. Works with many fields;
4. Works with UIScroller embedded because their is no need for TOUCH DOWN.

Thanks Dany once again!

For the rest, I am attaching the complete sample application. Hopefully you will all find the answers sooner than I did.
PROBLEM...
There is still a scenario, which does not work with this code. If user touches number field followed by another number field and then goes to a text field, then the DONE key is still visible.
__________________
iPhone Apps: Who SAid™, iFRICA™, iFA™, iReceipt™,eCash™
ManWithMask is offline   Reply With Quote
Old 05-16-2011, 03:14 AM   #25 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

yes, really i thinked about it....because there is a double DONE button and only 1 remove.....so just check if already added, if so, don't add it again.
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 403
20 members and 383 guests
Absentia, AyClass, baja_yu, checkright, Diligent, dre, epaga, fvisticot, givensur, jbro, jPuzzle, momolgtm, Newbie123, Punkjumper, revg, sacha1996, skrew88, taylor202, tomtom100
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,643
Threads: 94,110
Posts: 402,858
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Diligent
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:38 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0