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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:17:45+00:00 2026-05-24T22:17:45+00:00

Hello everyone, I need help on creating a button like in the above picture.

  • 0

multiple button with next to another

Hello everyone,
I need help on creating a button like in the above picture.
They are multiple buttons that are used to switch to another view and the next button to show a hidden button.

I ‘d like to know which UI Control to use.
Whichever free ready-to-use control or code example is preferred.

Thank you very much.

I did what Mayur Joshi’s suggestion but don’t understand why I can’t scroll buttons in scrollview and there’s no text on buttons.

This is my code

- (void)viewDidLoad
{
    [super viewDidLoad];




    [scrollView setContentSize:CGSizeMake(500.0f, 50.0f)];
    [self.view addSubview: scrollView];

    UIButton *button1 = [UIButton buttonWithType: UIButtonTypeRoundedRect];
    [button1 setTitle:@"Button1" forState:UIControlStateNormal];

    [button1 setFrame:CGRectMake(0.0F, 0.0F, 100.0F, 50.0F)];
    [scrollView addSubview:button1];
    [button1 release];


    UIButton *button2 = [UIButton buttonWithType: UIButtonTypeRoundedRect];
    [button2 setTitle:@"Button2" forState:UIControlStateNormal];

    [button2 setFrame:CGRectMake(100.0F, 0.0F, 100.0F, 50.0F)];
    [scrollView addSubview:button2];

    [button2 release];


    UIButton *button3 = [UIButton buttonWithType: UIButtonTypeRoundedRect];
    [button3 setTitle:@"Button3" forState:UIControlStateNormal];

    [button3 setFrame:CGRectMake(200.0F, 0.0F, 100.0F, 50.0F)];
    [scrollView addSubview:button3];

    [button3 release];

    UIButton *button4 = [UIButton buttonWithType: UIButtonTypeRoundedRect];
    [button4 setTitle:@"Button4" forState:UIControlStateNormal];

    [button4 setFrame:CGRectMake(300.0F, 0.0F, 100.0F, 50.0F)];
    [scrollView addSubview:button4];

    [button4 release];

    UIButton *button5 = [UIButton buttonWithType: UIButtonTypeRoundedRect];
    [button5 setTitle:@"Button5" forState:UIControlStateNormal];

    [button5 setFrame:CGRectMake(400.0F, 0.0F, 100.0F, 50.0F)];
    [scrollView addSubview:button5];

    [button5 release];


}

you can download source code here

This is app screen shot.
button in scrollview screen shot

  • 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-24T22:17:46+00:00Added an answer on May 24, 2026 at 10:17 pm

    Just remove the release methods from the buttons and you are good to go.

    Actually, when you declare the buttons with

     UIButton* btn1 = [UIButton buttonWithType: UIButtonTypeRoundedRect];
    

    it is already in auto-release mode as its a class method and not a static method. So you dont need to write

     [btn1 release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to do somthing like that: $cat1 = array('hello', 'everyone'); $cat = array('bye',
Hello everyone I am new to blackberry and I want a textfield that scroll
Hello everyone I'm trying to convert a PKCS#8 private key that I generate in
Hello everyone I use MongoDB find() method like this: $cursor = $collection->find(); foreach($cursor as
Hello everyone here... I need to build up a swing application related to vehicle
Hello Everyone I want to execute an inline assembly instruction that is of the
Hello everyone i need to convert this code to a function with 2 parameters
Hello everyone I will be explaining what i need to do and what i
Hello everyone and thank you for your time. I would just like to say
Hello Everyone, I am working on an application in which i need to save

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.