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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:45:24+00:00 2026-06-02T20:45:24+00:00

I saw in my iPhone app that there is a gesture on the status

  • 0

I saw in my iPhone app that there is a gesture on the status bar which can access Notification Center. How can I implement that kind of transition in my app?. I think this is done with the swipe gesture recognizer, but how do I include a swipe gesture from top to bottom (how you can drag the Notification Center through its full transition)? Is there any sample code or something that can help me do this?
Thaks in advance

  • 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-02T20:45:25+00:00Added an answer on June 2, 2026 at 8:45 pm

    Should be easy to do. Let’s say you have a UIView (mainView) from which you want to trigger the pull down thing.

    1. Put a subview (pulldownView) on mainView top-outside of visible area.
    2. Implement touchesBegan on mainView and check if the touch is in the top 30 pixels (or points).
    3. Implement touchesMoved where you check, if move direction is down and pulldownView not visible and if so drag the pulldownView down into visible area of main view or check if move direction is up and pulldownView visible and if so push upwards out of visible area.
    4. Implement touchesEnd where you end the drag or push movement by checking in which direction the pulldownView was moved.

    EDIT:

    Here’s some sample code. Untested, may contain typos, maybe won’t compile, but should contain the essential part needed.

    //... inside mainView impl:
    -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
    {
      UITouch *touch = (UITouch *)[touches anyObject];
      start = [touch locationInView:self.superview].y;
      if(start > 30 && pulldownView.center.y < 0)//touch was not in upper area of view AND pulldownView not visible
      {
        start = -1; //start is a CGFloat member of this view
      }
    }
    
    -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
    {
      if(start < 0)
      {
        return;
      }
      UITouch *touch = (UITouch *)[touches anyObject];
      CGFloat now = [touch locationInView:self.superview].y;
      CGFloat diff = now - start;
      directionUp = diff < 0;//directionUp is a BOOL member of this view
      float nuCenterY = pulldownView.center.y + diff;
      pulldownView.center = CGPointMake(pulldownView.center.x, nuCenterY);
      start = now;
    }
    
    
    -(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
    {
      if (directionUp)
      {
        //animate pulldownView out of visibel area
        [UIView animateWithDuration:.3 animations:^{pulldownView.center = CGPointMake(pulldownView.center.x, -roundf(pulldownView.bounds.size.height/2.));}];
      }
      else if(start>=0)
      {
        //animate pulldownView with top to mainviews top
        [UIView animateWithDuration:.3 animations:^{pulldownView.center = CGPointMake(pulldownView.center.x, roundf(pulldownView.bounds.size.height/2.));}];
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I write a private message in Facebook via iPhone app? I saw
I saw there are several apps on App Store that allow other computers to
In my iPhone app, there is a setup assistant which helps users to input
Hello, everybody. We are developing an iPhone app which supported by a server-side that
I saw the Bug Me iPhone app and was intrigued by the ability to
I saw that even by writing separate commands, we can combine two different types
I have a iphone app which is enable to receive push notifications. Currently i
I created an iPhone app which users search news, the app runs the search
I'm wondering is there a difference between iTunes Connect App Name that you enter
I have an iPhone chat app using XMPP with an EJABBERD server that is

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.