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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:50:27+00:00 2026-06-10T14:50:27+00:00

On my research regarding this navigation technique, I’ve found this post by Nick Harris

  • 0

On my research regarding this navigation technique, I’ve found this post by Nick Harris which is a good start I suppose. However, what I want is slightly different from this. You can think of it as iOS’ Notification Center when you just have to swipe from the top to show the view and just swipe back to hide it again. In my case, I wish to reveal a hidden UIView coming from the right side of the screen with a swipe gesture to the left and also hide it again through the same gesture (this time to the right).

I’ve managed to get a solution on my previous post regarding showing/hiding a UIView. One thing I wish to add is the swiping gesture.

I wouldn’t want to tweak my app delegate to do this as Nick Harris has done. So if anyone has any ideas/code samples on how I could do this, I’d be much grateful.

Shed some light 🙂

  • 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-10T14:50:29+00:00Added an answer on June 10, 2026 at 2:50 pm

    You can reveal a hidden UIView coming from the right side of the screen with a swipe gesture to the left and also hide it again through the same gesture (this time to the right). adding transition.

    Add BOOL didNotSwipe in .h file add its value didNotSwipe = TRUE in .m file viewDidLoad method

    Add swipe gesture with left and right direction with different selector to your self.view.

     UISwipeGestureRecognizer *recognizer;
    recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRight:)];
    [recognizer setDirection:UISwipeGestureRecognizerDirectionRight];
    [[self view] addGestureRecognizer:recognizer];
    [recognizer release]; 
    
    UISwipeGestureRecognizer *recognizer1;
    recognizer1 = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeleft:)];
    [recognizer1 setDirection:UISwipeGestureRecognizerDirectionLeft];
    [[self view] addGestureRecognizer:recognizer1];
    [recognizer1 release]; 
    

    When swipe left this method is called:

     -(void)swipeleft:(UISwipeGestureRecognizer *)swipeGesture 
     {
       if (didNotSwipe) {
         didNotSwipe = FALSE;
         CATransition *animation = [CATransition animation];
         [animation setDelegate:self];
         [animation setType:kCATransitionPush];
         [animation setSubtype:kCATransitionFromRight];
         [animation setDuration:0.50];
         [animation setTimingFunction:
         [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
         [self.view.layer addAnimation:animation forKey:kCATransition];
         [self.view addSubView:self.overlayView];
         //[self.overlayView setFrame:CGRectMake(0,0,self.overlayView.frame.size.width,self.overlayView.frame.size.height)];
       }
     }
    

    when swipe right this method:

     -(void)swipeRight:(UISwipeGestureRecognizer *)swipeGesture
     {
       if(!didNotSwipe){
         didNotSwipe = TRUE;
         CATransition *animation = [CATransition animation];
         [animation setDelegate:self];
         [animation setType:kCATransitionPush];
         [animation setSubtype:kCATransitionFromLeft];
         [animation setDuration:0.40];
         [animation setTimingFunction:
         [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
         [self.view.layer addAnimation:animation forKey:kCATransition];
         [self.overlayView removeFromSuperView];
       }
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made a research and all posts here are very blury regarding this issue.
I do have a research regarding this drop down menu. And below are the
Regarding this question I had research lot and got the different suggestion, but non
I have done some research regarding on how to use file_get_content with post. And
I want to do some power management research regarding the wifi interface of android
I did some research and found that the only way to vertically center a
I've been doing some research on whether what best practice is regarding the use
I'm new to SOLR and was doing some research on this technology. I now
I have a question regarding search engine optimisation. I did some research on my
I have one question regarding trigger. The scenario is like this Create Procedure begin

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.