Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 835859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:53:24+00:00 2026-05-15T04:53:24+00:00

I am using tag field as a flag for text fields text view fields

  • 0

I am using tag field as a flag for text fields text view fields for auto-jumping to the next field:

- (BOOL)findNextEntryFieldAsResponder:(UIControl *)field {
  BOOL retVal = NO;
  for (UIView* aView in mEntryFields) {
    if (aView.tag == (field.tag + 1)) {
      [aView becomeFirstResponder];
      retVal = YES;
      break;
    }
 }
 return retVal;
}

It works fine in terms of auto-jumping to the next field when Next key is pressed. However, my case is that the keyboards are different some fields. For example, one fields is numeric & punctuation, and the next one is default (alphabetic keys). For the numeric & punctuation keyboard is OK, but the next field will stay as the same layout. It requires user to press 123 to go back ABC keyboard.

I am not sure if there is any way to reset the keyboard for a field as its keyboard defined in xib? Not sure if there is any APIs available? I guess I have to do something is the following delegate?

-(void)textFieldDidBegingEditing:(UITextField*) textField {
  // reset to the keyboard to request specific keyboard view?
  ....
}

OK. I found a solution close to my case by slatvik:

-(void) textFieldDidBeginEditing:(UITextField*) textField {
  textField.keyboardType = UIKeybardTypeAlphabet;
}

However, in the case of the previous text fields is numeric, the keyboard stays numeric when auto-jumped to the next field. Is there any way to set keyboard to alphabet mode?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:53:24+00:00Added an answer on May 15, 2026 at 4:53 am

    Finally I find out a way to solve my issue. In my case, I like to use Entry or Next key to auto-jump to the next available field. If the two fields in sequence have totally different keyboards, the keyboard change should be fine. However, if the one is keyboard with numeric mode, and the next one is in alphabet mode, then the auto-jump would not cause the same keyboard to change mode.

    The main reason is that my call to findNextEntryFieldAsResponder: method is done in textFieldShouldReturn: delegate method. The call caused the next field becomes the responder:

     ...
     [aView becomeFirstResponder]; // cause the next fields textFieldDidBeginEditing: event
     ...
    

    I found this in my NSLog debug message:

     textFieldShouldReturn: start
       findNextEntryFieldAsResponder
       textFieldDidBeginEditing: start
       ...
       textFieldDidBeginEditing: end
       ...
     textFieldShouldReturn: end
    

    What I need to do is to the next field as responder out of textFieldShouldReturn: event call. I tried to use iphone’s local Notification framework to fire a async-notification event within the textFieldShouldReturn: and it does what I expect.

    Here is my updated codes:

    - (BOOL)findNextEntryFieldAsResponder:(UIControl *)field {
      BOOL retVal = NO;
      for (UIView* aView in mEntryFields) {
        if (aView.tag == (field.tag + 1)) {
          if ([self.specialInputs containsObject:[NSNumber numberWithInt:aView.tag]]) {
            NSNotification* notification = [NSNotification notificationWithName:
                @"myNotification" object:aView];
            [[NSNotificationQueue defaultQueue]
               enqueueNotification:notification postingStyle:NSPostWhenIdle
               coaslesceMask:NSNotificationCoalescingOnName forModes:nil];
            [[NSNotifiationCenter defaultCenter] addObserver:self
               selector:@selector(keyboardShowNofication:)
               name:@"myNotification" object:nil];
          }
          else {
            [aView becomeFirstResponder];
          }
          retVal = YES;
          break;
        }
      }
      return retVal;
    }
    ...
    // Notification event arrives!
    -(void) keyboardShowNofication:(NSNotification*) notification {
      UIResponder* responder = [notification object];
      if (responder) {
         [responder becomeFirstResponder]; // now the next field is responder
      }
    }
    ...
    -(void) dealloc {
      ...
      // remember to remove all the notifications from the center!
      [[NSNotificationCenter defaultCenter] removeObserver:self];
      ...
    }
    

    where specialInputs is a NSArray of int values. It is a property can be set with a list tags as special inputs. Actually, I think all the inputs can be treated as specialInputs and it does work as well(just more notifications).

    I have a complete description of codes in my blog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using p:password tag for registration. I want to toggle the field to
How to unwrap a text from a HTML tag using jQUery? For instance, how
Following is the code snippets taken from http://pietschsoft.com/post/2011/09/09/Tag-Editor-Field-using-jQuery-similar-to-StackOverflow.aspx // pre-selected tags values: [ 'javascript',
I have overriden lead object standard detail page with my vf page using tag
I'm trying to add some additional key/value pairs to an NSMutableDictionary, using: Tag *tag1
I'm using this tag so that when I enter appledell (without the quotes) as
I'm using the tag-it library for jquery to make a tagging system (a bit
I would like to clone a tag using Javascript (without using any external frameworks
I have created an object at runtime by using innerHTML tag, now I want
how to get value without <br/> tag using regex n java? my String is:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.