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

  • Home
  • SEARCH
  • 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 7863409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:28:23+00:00 2026-06-02T23:28:23+00:00

I am new to gaming apps. I am trying to implement question and answer

  • 0

I am new to gaming apps. I am trying to implement question and answer game in which we have text fields. When you type a letter it automatically moves to the next text field, but it is not moving automatically for the second textfield. Can anybody help me to solve this issue?

 int i=0,k=0;
        while(i<len)
        {
            int y = 15 +k*44;
            int j=0;
            for(j=0; j<15;j++)
            {
                if (i>=len) 
                    break;

                if([[CharArray objectAtIndex:i]isEqualToString:@" "])
                {
                    NSLog(@" space i value:%d",i) ;

                    NSNumber* spaceValues = [NSNumber numberWithInt:i];
                    [intArray addObject:spaceValues];
                    NSLog(@"intArray values :%@",intArray);
                }
                else
                {
                    letterField = [[UITextField alloc] init];
                    // letterField.text = [CharArray objectAtIndex:i];
                    [letterField setContentMode:UIViewContentModeCenter];
                    [letterField setFrame:CGRectMake(30*(j+1)+1*j, y, 30,30)];
                    letterField.font = [UIFont systemFontOfSize:27.0f];
 [letterField setTag:tagCount+300];
                    letterField.autocapitalizationType = UITextAutocapitalizationTypeNone;
   letterField.delegate = self;
                    [answerView addSubview:letterField];
  [letterField release];
                    tagCount ++;
                }
                i++;
            }
            k = k+1;
        }
        [viewToGuess removeFromSuperview];
        [self.view addSubview:answerView];
        [self.view bringSubviewToFront:answerView];
        answerView.frame = CGRectMake(0, 904, 768, 100);

I am using this code for getting the TextField and I use keypress notification for this:

nextTag = nextTag + 1;  //increment the tag value while key press.
  • 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-06-02T23:28:25+00:00Added an answer on June 2, 2026 at 11:28 pm

    Even though you are using the same logic for the second time it will not work, am i right? I think you forgot to allocate textfields

    and

     UITextField *textField = (UITextField *)[self.view viewWithTag:nextTag];
        [textField becomeFirstResponder];
    

    if you use this you may got what you want

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

Sidebar

Related Questions

New to DDD here and have a architecture question which should be a typical
I'm looking at buying a new gaming PC on which to do some XNA
I am new on gaming in android. I have to start my new project
I have hosted a new head tail gaming site. But I continously get this
New Question I am looking for a way in Javascript to get the parent
New to FluentNHibernate =D I have a parent/children classes as follows: public class Parent
New to all this so forgive my ignorance. I am trying to figure out
You often see that a new game will be released on Xbox 360, PS3
NEW EDIT: I have narrowed my problem to this - i have a view
New question, but really close to need to refresh page in jquery mobile .

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.