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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:05:55+00:00 2026-05-27T12:05:55+00:00

I need to implement a single button which would be shown at upper right

  • 0

I need to implement a single button which would be shown at upper right corner of the application on UIView or MKMapView. On clicking that button a combo should come up and user would be able to select the categories.

How can I achieve that?

  • 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-27T12:05:56+00:00Added an answer on May 27, 2026 at 12:05 pm

    You have to create an UIButton and add it as a subview of your UIView (for example in viewDidLoad method if your view is linked to an UIViewController).

    UIButton *showButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    showButton.frame = CGRectMake(500, 20, 150, 44); // hardcoded frame, not quite elegant but works if you know the dimension of your superview
    [showButton setTitle:@"Show Categories" forState:UIControlStateNormal];
    // add target and actions
    [showButton addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
    // add to a superview, your parent view
    [superView addSubview:showButton];
    

    Then you add a method, called buttonClicked: that takes an id parameter (usually the sender, showButton in this case).

    -(void)buttonClicked:(id)sender
    {
     // visualize categories
    }
    

    To visualize the categories you can follow two different ways:

    1. Present a UITableViewController inside a UIPopoverController (only for iPad device)
    2. Show a modal controller presenting a UITableViewController (both iPad and iPhone devices).

    The UITableViewController allows you to have a list of categories and then select one of them.

    P.S. Check the code in XCode because I’ve written by hand (without XCode)

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

Sidebar

Related Questions

I need to implement single sign-on in my java web application which can achieve
i need to implement two different stylesheets in a single master page. one style
I need to create a method for my intranet web application that will authenticate
The App I need to implement a web app that will be used by
I'm trying to implement a single-sign-on link from application written in JAVA, to another
I have a WCF service. I need to implement IServiceBehavior in my class that
If I need to implement a single sign on in the new web site(asp.net),
I need to implement a producer/consumer bounded queue, multiple consumers against a single producer.
I need to implement an editable datagrid which allows to get and edit data
I need to implement a simple ATL COM object that implements a specific interface

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.