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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:57:26+00:00 2026-06-04T16:57:26+00:00

I have three buttons like this each corresponds to a different UIViewController : For

  • 0

I have three buttons like this each corresponds to a different UIViewController:

enter image description here

For example, I press button 1. It will pass to the start button the view controller corresponding to that number that it will show.

I need to be able to pass it in this button:

enter image description here

Is it possible?

  • 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-04T16:57:27+00:00Added an answer on June 4, 2026 at 4:57 pm

    Yes, just create the UIButton as property on the view controller shown on button tap. Then, in the handler for the button tap, use the button property on the new controller to assign the button before showing the new controller.

    Sample code:

    //here's your method invoked when pressing the button 1
    - (IBAction) pressedButtonOne:(id) sender {
        NewViewController *newVc = [[NewViewController alloc] initWithNibName:@"NewViewController" bundle:nil];
        newVc.startButton = self.startButton;
    }
    

    Here’s the code in the controller created when pressing button 1

    NewViewController.h

    #import <UIKit/UIKit.h>
    @interface NewViewController : UIViewController
    @property (nonatomic, retain) UIButton *startButton;
    
    //NewViewController.m
    - (void) viewDidLoad {
        //use self.startButton here, for whatever you need
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three IBActions, each linked with it's own button like so: #import Controller.h
I would like to have three buttons or images in my view, that each
I have three radio buttons like this: <input type=radio name=P_1 value=1>Yes</input> <input type=radio name=P_1
I have three radio buttons with same name and different values.When I click the
I have a group of three radio buttons. Depending on which radio button is
I have three lists, each item has a tool bar of buttons . The
I have three buttons in a three column structure in a custom cell in
I have three radio buttons in my Oracle form. Ideally, selecting one option would
In my page I have three radio buttons and I want to checked the
I have an application with three buttons (actually UIView 's) laid out horizontally underneath

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.