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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:08:16+00:00 2026-06-14T00:08:16+00:00

I am using UIPageViewController to load 10 webpages in a webview. All the webpages

  • 0

I am using UIPageViewController to load 10 webpages in a webview.

All the webpages are loading one by one properly. But I am facing a weird problem in

- (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController

Right now I am in 1st page. So there are no possibility of going back to the

- (UIViewController *)pageViewController:(UIPageViewController *) pageViewController viewControllerBeforeViewController:(UIViewController *)viewController

After I load the 1st page, I was just scrolling up and down with the WebView. Suddenly the viewControllerAfterViewController method is getting called. And strange thing is , it is not moved to the next view i.e (2nd page) is not loaded.

What could be the problem ?

  • 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-14T00:08:18+00:00Added an answer on June 14, 2026 at 12:08 am

    I’m not sure but, I think the problem is in the gesture recognizers, or the location of there CGRects. Basically the page view controller listens for a touches-move. So if the user swipes the scroll (on the webView) page view tries to execute a page turn. (I’m guessing) I think a solution would be to make sure the page view touch location (CGRect) does not overlap with the web view. Apparently you can set the position (region) for the touch for the UIPageViewController” to turn the page.

    You can start by looking up “UIGestureRecognizer Class Reference” in the iOS Reference Library. I hope this helps

    Here’s what I found there:

    locationInView:
    Returns the point computed as the location in a given view of the gesture represented by the receiver.

    • (CGPoint)locationInView:(UIView *)view
      Parameters
      view
      A UIView object on which the gesture took place. Specify nil to indicate the window.
      Return Value
      A point in the local coordinate system of view that identifies the location of the gesture. If nil is specified for view, the method returns the gesture location in the window’s base coordinate system.

    Discussion
    The returned value is a generic single-point location for the gesture computed by the UIKit framework. It is usually the centroid of the touches involved in the gesture. For objects of the UISwipeGestureRecognizer and UITapGestureRecognizer classes, the location returned by this method has a significance special to the gesture. This significance is documented in the reference for those classes.

    Availability
    Available in iOS 3.2 and later.
    See Also
    – locationOfTouch:inView:
    Declared In
    UIGestureRecognizer.h
    locationOfTouch:inView:
    Returns the location of one of the gesture’s touches in the local coordinate system of a given view.

    • (CGPoint)locationOfTouch:(NSUInteger)touchIndex inView:(UIView *)view
      Parameters
      touchIndex
      The index of a UITouch object in a private array maintained by the receiver. This touch object represents a touch of the current gesture.
      view
      A UIView object on which the gesture took place. Specify nil to indicate the window.
      Return Value
      A point in the local coordinate system of view that identifies the location of the touch. If nil is specified for view, the method returns the touch location in the window’s base coordinate system.

    Availability
    Available in iOS 3.2 and later.
    See Also
    – locationInView:
    Declared In
    UIGestureRecognizer.h

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

Sidebar

Related Questions

I am using a UIPageViewController in my app. It works quite well, but when
Using mercurial, I've run into an odd problem where a line from one committer
I'm using UIPageViewController in my application that shows all the images similar to a
I am using UIPageViewController to load multiple view controllers. When I run my application
If you make a page-based application (using UIPageViewController) in xcode 4.3.1 and iOS5 you
Can anyone tell me, how to make shadow, using UIPageViewController, around of my background
Using the Redis info command, I am able to get all the stats of
Using System.Diagnostics.EventLog .NET type one can programmatically create logs into the Event Viewer application.
I'm using UIPageViewController and story board in my application. When in portrait, i'm using
I'm creating an app to show a book by using UIPageViewController (to have the

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.