|
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Mar 2010
Posts: 1
|
Hello,
I am looking to make Entry page for different Data inputs. I have created Entry Page using Interface Builder and set attributes from that. I have two questions on that. 1> Once data entered in First Text Field Input then if user press Next on keyboard then Cursor should go to Next TextFiled input box. How to do that ? Means looking to send UIResponder Tasks to textFieldShouldReturn function. 2> Once all TextField Inputs are finished then how to add "save" button on Navigation Bar so Data Entry will be saved. Means How can I pass action to BarButtonItem to confirm all data entry.? Is there any sample Code to under stand this type of functionality? I have found one reference to implement textFieldShouldReturn routine to Navigate through testfield(Next/Done Buttons) - (BOOL)textFieldShouldReturn UITextField *)textField {NSInteger nextTag = textField.tag + 1; UIResponder* nextResponder = [textField.superview viewWithTag:nextTag]; if (nextResponder) { [nextResponder becomeFirstResponder]; } else{ [textField resignFirstResponder]; } return YES; } How to use this routine to work in file with different TextField Inputs? Thanks, rach Last edited by rach; 03-09-2010 at 03:02 AM. |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Search Engine Friendly URLs by vBSEO 3.3.0 RC1 |



UITextField *)textField {
Linear Mode
