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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:11:11+00:00 2026-06-07T23:11:11+00:00

In my project, i have two views. One is homeViewController and other is searchViewController.

  • 0

In my project, i have two views. One is homeViewController and other is searchViewController. I have done right swipe gesture on homeViewController to show searchViewController. But UISwipeGestureRecognizerDirectionRight doesn’t work for me. It gives left animation rather than right.

I have added below code in homeViewController.m to add gesture property and show SearchViewController:

UISwipeGestureRecognizer *swipeRecognizer=[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeDetected:)];
   [swipeRecognizer setDirection:UISwipeGestureRecognizerDirectionRight];
   [self.view addGestureRecognizer:swipeRecognizer];
   [swipeRecognizer release];

-(void)swipeDetected:(UIGestureRecognizer *)sender
{
   SearchViewController *searchView=[[SearchViewController alloc] initWithNibName:@"SearchViewController" bundle:nil];
   [self.navigationController pushViewController:searchView animated:YES];
   [searchView release];
}

Please help me out.
Thanks.

  • 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-07T23:11:12+00:00Added an answer on June 7, 2026 at 11:11 pm

    The animation here is coming as part of the navigation controllers pushViewController:animated: method, it has nothing to do with the direction of the gesture recognizer (that only determines which way the user needs to swipe in order for the swipe to be recogized)

    if you want to be able to swipe between view controllers in other directions you could look at UIPageViewController

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

Sidebar

Related Questions

I have two projects.One project is build in MVC asp.net and the other project
I have two project, one which generates some artifacts from a WSDL file using
I have one main page in my Silverlight project. I have two frame inside
We have two WebApplication in one MVC solution, one for Desktop and the other
I currently have my project running two separate threads (one for MFC operations, like
I have a project in which I have to interact with two databases. One,
I have added two user control to the project. One is for portrait and
I have two views that returns the same columns, but different rows. I am
I have two view Controllers in my project ViewController , SettingsView . Here I
In my PHP project I have two different models that have a function with

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.