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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:02:44+00:00 2026-05-28T16:02:44+00:00

I have created a page-based application in Xcode 4, for iPad iOS5. When I

  • 0

I have created a page-based application in Xcode 4, for iPad iOS5.

When I run the app, I can see the pages in the book and can flip them back and forward,
by tap on the screen or by moving the finger from left to right, or right to left.

My problem is that no matter where I’m pressing in the screen, in the borders, the page turns.

I had managed to cancel the flip with fingers with this code:

for (UIGestureRecognizer *gR in self.pageViewController.gestureRecognizers) 
{
    if ([gR isKindOfClass:[UIPanGestureRecognizer class]]) 
    {
        [[gR view] removeGestureRecognizer:gR];
    }
}

How can I define a specific area in the screen that when I tap on it, and only it, the page will turn?

I ask this because I put toolbar in the bottom of the screen and when I click on a button in the toolbar the page flips. I want to put 2 arrows on the screen that only when I press on them the page will flip.

Sorry if my explanation is a little bit rusty. Thank you all.

  • 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-28T16:02:46+00:00Added an answer on May 28, 2026 at 4:02 pm

    you could hook into the the gesture system and define which area to accept touches for.

    In this explanation I assume your RootViewController has a UIPageViewController as a child VC:

    -Set your root view controller to implement UIGestureRecognizerDelegate

    -Take over all gesture recognizers for your pageVC in your RootViewControllers ViewDidLoad:

    for (UIGestureRecognizer *gR in self.pageVC.gestureRecognizers) {
        gR.delegate = self;
    }
    

    -Finally implement the gesture recognizer in your RootViewController and define which zones you want to ignore:

    -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
    {
     if ([gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]]) { 
         CGPoint point = [touch locationInView:self.view];
    
         //Examine point and return NO, if gesture should be ignored.
    
       }
       return YES;
    }
    

    Hope this helps

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

Sidebar

Related Questions

I have created an web based application through which the users can change the
I have created a page on my site where users can post directly to
I have created a View based based application of 4 views. By using navigation
In my application I have created some locking / unlocking functionality based on the
I have created online exam application (web based) in asp.net c#. In my application
I have created a simple application using MVC3 and the site is based on
I have an application which tab page based. To decrease the startup time I
I've created an application which outputs a PDF report based on an HTML page
I have created one aspx Page from that i need to access the property
I have created a web page (ASP.NET) that includes a stylesheet to mimic Dynamics

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.