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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:20:30+00:00 2026-06-08T00:20:30+00:00

I have been searching for a way to make a menu come 80 pixels

  • 0

I have been searching for a way to make a menu come 80 pixels down from the top of the screen and have the screen slide down with it (80 pixels) when the user swipes his finger from top to bottom (and reverse it when they swipe top to bottom to send it back up). How should i go about doing that? Anything helps. Thank you!

  • 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-08T00:20:32+00:00Added an answer on June 8, 2026 at 12:20 am
    1. Create a UISwipeGestureRecognizer and add it to the view you want it to appear on:

      UISwipeGestureRecognizer *swipeGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)];
      [swipeGesture setDirection:UISwipeGestureRecognizerDirectionDown];
      [self.view addGestureRecognizer:swipeGesture];
      
    2. Create an instance variable that will hold your menu view and add it to the view OUTSIDE of the screen (note -80 y-coordinate):

      menuView = [[UIView alloc] initWithFrame:CGRectMake(0, -80, 320, 80)];
      //add whatever controls you need to the menu view, or load it from a nib
      [self.view addSubview:menuView];
      
    3. Define a method that will slide the menu onto the view when down swipe is detected:

      -(void)swipe:(UISwipeGestureRecognizer*)sender {
              [UIView animateWithDuration:0.5 animations:^{
                  [menuView setFrame:CGRectMake(0, 0, 320, 80)];
          }];
      }
      

    If you want the screen to slide down with it or anything else you might like to happen, add additional actions to the animation block.

    To remove the view with the upward slide, you can create another UISwipeGestureRecognizer, but with UISwipeGestureRecognizerDirectionUp direction. Make another method that will do a reverse-slide of the menu.

    Hope it helps.

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

Sidebar

Related Questions

I have been searching for days for a way to always display just one
I have been searching for a command that will return files from the current
I have been searching several days for an example of how to make a
Good day, I have been searching for a way to format output using writeline/write
I've been searching for a way to make a textarea type inside of itself.
Alright now, I have been searching everywhere for a way to accomplish this and
I've been unsuccessfully searching for a way to install make utility on my CentOS
Ok, I have been searching high and low for an easy way to implement
Have been searching how to convert a dictionary to a string. But the results
I have been searching in stackoverflow for a question similar to mine because it

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.