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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:23:18+00:00 2026-06-14T10:23:18+00:00

In my application ,i having 4 UIbuttons .On click each button showing subview view

  • 0

In my application ,i having 4 UIbuttons .On click each button showing subview view contains learn and play option.While clicking , want to show the different view depends on the uibutton selection.Here my code . please help me to perform diffrent view on click option.

-(IBAction)animals
{
  //UIAlertView *alert4=[[UIAlertView alloc]initWithTitle:@"" message:@"" delegate:self cancelButtonTitle:nil otherButtonTitles:@"LEARN",@"PLAY",@"CANCEL",nil];
//alert4.tag = 4;  
//[alert4 show];///when it was in uialert view

CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}
-(IBAction)birds
{

CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}
-(IBAction)direct
{ 
 CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}
-(IBAction)fruit
{
 CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}

What should i add ,to perform multi view option in same click?

  • 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-14T10:23:19+00:00Added an answer on June 14, 2026 at 10:23 am

    set the tag(unique) for all the buttons and then bind them to a same event(IBAction) in touchUpInside.
    In the below case bind all of them to the event animals:

     -(IBAction) animals: (id) sender;
    
        ===================================
    
        -(IBAction) animals: (id) sender {
          NSLog(@"User clicked %@", sender);
          // Do something here with the variable 'sender'
          if(sender.tag==1)
             {
               enter code here
             }
              else if (sender.tag==2)
               {
                 enter code here
               }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application ,i having 4 UIbuttons .On click each button showing same alert
In my application I'm having 4 buttons. On each click I want to show
i am having a application where i am generating the uibuttons dynamically want to
Im having four buttons in my application,im getting the button title from array ,I
In my application i am having 1 image view and 4 buttons, i want
I am developing application having a resemblance appearance like Gallery application. When I click
One of mine application having custom button to print the customer invoice bill. The
My application is like related to quiz,In my view im having 1 image view
My iphone application having the Date Picker option. It is working fine in 3GS
I have an application having 2 Forms, each Form and Application have individual Icon.

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.