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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:51:15+00:00 2026-06-12T10:51:15+00:00

I am diving into iOS development and for that I am developing a simple

  • 0

I am diving into iOS development and for that I am developing a simple app that displays blogposts.

I have the following setup in my DetailViewController:

My DetailViewController

What I want to implement is that when a user swipes left or right on the screen, I change the content of the webView.

The swipe-gestures however seem to be swallowed by the UIWebView, so I figured I could make a transparent UIView (“Posts Detail Touch Interceptor View”) on top and have it handle the swipe-gestures and forward them to the DetailViewController.

This works, the swipe-handlers in DetailViewController get called, but I can no longer scroll in the webView or press any buttons. I assume, because the transparent UIView consumes all events before they reach the UIWebView.

What is the best way to make all controls below the transparent view respond to events normally, while the swipe gestures get forwarded to the DetailViewController?

  • 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-12T10:51:16+00:00Added an answer on June 12, 2026 at 10:51 am

    You could still add the swipe recognizer to the UIWebView and implement this method in your gesture recognizer delegate:

        - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
    

    Alternatively, you can see this SO post to handle the event in both views:

    Touch event handled by multiple views

    I recommend first trying to use your own gesture recognizer in the UIWebView. I have done this before successfully.

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

Sidebar

Related Questions

I'm diving into iOS development and I'm building a simple app that will support
I'm diving into iOS development and have been working on an alarm clock app
I'm diving into iOS development and I'm building a navigation based app that wasn't
I'm diving into iOS development and I find that for each of my UI
I'm diving into iOS development and am building a game that has multiple game
I'm diving into iOS development and I have a few questions about manipulating a
I'm diving into iOS development and I have a quick noob question about Core
I'm diving into iOS development and I'm playing with touch events. I have a
I'm diving into iOS development and have been slowly building my own alarm clock
I'm diving into iOS development and I'm using Xcode on a multi-monitor setup. Obviously

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.