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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:38:54+00:00 2026-06-03T15:38:54+00:00

Not sure if the title is very clear but I don’t know the exact

  • 0

Not sure if the title is very clear but I don’t know the exact name for the thing I’m looking for. I have a gird that consists of UIButtons (basically a sequencer). I want a line similar to the vertical line in this image (between the 8th and 9th button of each row:

enter image description here

So basically when my grid is being played I want to indicate the progress. Any idea how I could do this? What kind of elements to use etc.

  • 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-03T15:38:58+00:00Added an answer on June 3, 2026 at 3:38 pm

    You can add a UIView that is very narrow, 1 or 1.5 pixels. Set the background color to white or a gradient. Add this view to the same subview as the buttons.

    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(100.0, 0.0, 1.5, 320.0)];
    lineView.backgroundColor = [UIColor whiteColor];
    [parentView addSubview:lineView];
    

    To show progress you’ll need to know how much is left until completion. Take that value and divide by 320 to get the lineView height.

    CGRect frame = CGRectMake(100.0, 0.0, 1.5, 0);
    lineView.frame = frame; // 0% complete
    
    frame = CGRectMake(100.0, 0.0, 1.5, 160.0);
    lineView.frame = frame; // 50% complete
    
    frame = CGRectMake(100.0, 0.0, 1.5, 320.0);
    lineView.frame = frame; // 100% complete
    

    That is the idea. Hope this help.

    Update to vertical bar moving across the screen

    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 1.5, 320.0)];
    lineView.backgroundColor = [UIColor whiteColor];
    [parentView addSubview:lineView];
    

    As progress is made

    - (void)progressWithValue(CGFloat)progress {
        CGRect frame = lineView.frame;
        frame.origin.x = progress;    // Change x position
        lineView.frame = frame;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not sure if the title is very clear, but basically what I have
Sorry about the title to this question, it's not very clear but wasn't sure
The title may not seem very clear - was not sure how to explain
I'm not sure that title is worded very well, but not sure how else
I am not sure how clear my question is by the title, but I
I don't speak very good English, not sure about title so will try to
sorry if the title is very confusing, but I'm not sure how to really
Ok so I'm not even sure how to title this post but I have
Sorry if the title is not very clear. I was not sure about the
I am not sure my title is correct or not since I have no

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.