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 8357659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:33:03+00:00 2026-06-09T10:33:03+00:00

i need to loop using timer and want to display the output, but the

  • 0

i need to loop using timer and want to display the output, but the condition is there should be only one label and using that i ve to split the words randomly hide them, use underscores for hidden lables, and now on looping through the timer i need to display the word in the database in the same place
For eg:
in first loop of timer:

MA_A_S
hint: HUMAN
in second loop of timer:
A_NIM_L_S
hint: TIGER
etc..

the “words” with underscore is not being overridden… it comes as MA_A_S A_NIM_L_S

My create function is:

- (void)createbutton:(NSInteger)j {

     p = 30;

    x = x+p ;
    if(x>250) {
        x=35;
        y=y+70;
    }

    pLblMyLable1 = [[UILabel alloc] initWithFrame:CGRectMake(x, y, 45, 45)];

    [pLblMyLable1 setTag:j+1];  
     iTag = [pLblMyLable1 tag];

    if (i == n|| i == r || i == s) {

        pLblMyLable1.hidden = YES;
            pLblUnderScore =[[UILabel alloc] initWithFrame:CGRectMake(x, y, 45, 45)];
            pLblUnderScore.backgroundColor = [UIColor clearColor];
            pLblUnderScore.text = @"_";
            pLblUnderScore.font = [UIFont fontWithName:@"Arial" size: 10.0];
            [pLblUnderScore setTag:2];  
            [self.view addSubview:pLblUnderScore];  

    } else {

        pLblMyLable1.hidden = NO;
    }

    pLblMyLable1.backgroundColor = [UIColor clearColor];
    pLblMyLable1.text = pStr;
    pLblMyLable1.font = [UIFont fontWithName:@"Arial" size: 10.0];
    [self.view addSubview:pLblMyLable1];    
    [pLblMyLable1 release];

}
  • 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-09T10:33:06+00:00Added an answer on June 9, 2026 at 10:33 am

    Format your string according to your requirement. Use NSString to overWrite in same label’s Text.

    To add string in same string use stringByAppendingFormat. How to do check this:

    NSString *str @"MA_MA_"
    YourLabel.text = str
    

    Now

    [str stringByAppendingFormat:@"ANI__L....."];
    YourLabel.text = str;
    

    Your label will display MA_MA_ANI__L…..

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

Sidebar

Related Questions

I need to write this program using a loop https://i.stack.imgur.com/gko6T.jpg this is what i
I have a nested JSON object that I need to loop through, and the
Okay so this is a bit complex but I need to loop through this
I have a number rather large, complex xml documents that I need to loop
I want some advice on structuring some (basic) php code. I need to display
I've got a html drop down <select> tag that I want to populate using
I need to loop through a List of Dictionaries List<Dictionary<string,string>> to populate a DataTable.
I need to loop through a set of 2-dimensional array of hidden input fields
I need to loop over a query exactly 12 times to complete rows in
I need to loop through each day of the week (monday tues...) and compare

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.