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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:36:52+00:00 2026-05-27T15:36:52+00:00

I m using a menu bar like this (using UIBUTTONS on an ImageView) Now

  • 0

I m using a menu bar like this (using UIBUTTONS on an ImageView)

enter image description here

Now what I required to do is that when I click on each button a popover (subview) should come up like:

enter image description here

How can I do that?

My second question is that when i click on the same button or anywhere else on the view then the popover should get hide and if i click on another menu button popover should get hide from previous button and should be shown on other button…

My project is already created with UIviewcontroller, so i think it would be much difficult to include the tab bars

any help please …

-(IBAction)buttonNotify:(id)sender{

popOver.frame = CGRectMake(173, 385, 88, 33);

[self.view addSubview:popOver];

}

  • 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-27T15:36:53+00:00Added an answer on May 27, 2026 at 3:36 pm

    In .h file of your ViewController declare

    UIImageView *popupView`;
    

    In .m file in initialisation initialise it, something like

    popupView = [[UIImageView alloc] initWithImage:@"your_image.png"];
    popUpView.frame = //some CGRect here//;
    popUpView.hidden = YES;
    [self.view addsubView:popupView];
    [popupView release];
    

    Also when you create your buttons you do it like this, yep?

    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame = //some CGRect here//;
    btn.tag = 1; // here you can set numeric tag for all your buttons
    [btn addTarget:self action:@selector(buttonHandler:)forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn]; 
    [btn release]
    

    And implement method

    -(void)buttonHandler:(id)sender
    {
        //sender here is your button object
        //so you can take it's tag or frame or something else to set frame of popupView
        popUpView.frame = //some rect
        popUpView.hidden = NO;
    }
    

    And you when you handle touch on your view, set
    popupView.hidden = YES to hide it

    Also you can add some animation.

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

Sidebar

Related Questions

I'm displaying a popup menu using TrackPopupMenu and would like to know when it
I built a Jquery dropdown menu using this tutorial . It works across browsers
What's the easiest/best way to register your program in explorers right-click menu using .NET
I have a menu bar that displays a set of categories in an upper
I have a horizontal navigation bar. Each button is a span with a background
I am using Dijit Menu bar with declartive markup. The Menu items contains links
I'm using the navigation controller project. I'd like to have a main menu without
I would like to make a color fading navigation menu using jQuery, in which
I'd like to have my application display an icon in OSX menu bar (top
I am building a menu using XHTML,CSS, and jQuery and I ran into a

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.