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

  • Home
  • SEARCH
  • 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 7064817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:52:51+00:00 2026-05-28T04:52:51+00:00

Possibly a duplicate, but I couldn’t find an exact answer to my problem searching

  • 0

Possibly a duplicate, but I couldn’t find an exact answer to my problem searching SO tonight…

I have a UIButton which contains a UIScrollView, so the button is the superview.

All I want to do is pass a single-tap event from the UIScrollView subview to the UIButton superview, and have the UIButton handle it as it would if the user tapped the button directly.

Setting the scroll view’s userInteractionEnabled property to NO won’t work for me because there is content the user can scroll. Doing so would defeat the purpose of the scroll view.

Is this possible? 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-05-28T04:52:52+00:00Added an answer on May 28, 2026 at 4:52 am

    Like huoxinbird said, it’s definitely not common to lay your views like that.

    In the case where you are solidly adamant about this, you could use UITapGestureRecognizer and have it call the button’s target and selector.

    If you wanted to include the button highlight and such, then you may have to subclass UITapGestureRecognizer and forward the touchesEnded to the button.

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

Sidebar

Related Questions

I apologize if this is a duplicate post, but I couldn't find the answer
I have a list which contains duplicate item values (by ID), but with a
Possible Duplicate: CompilerServices.Operators equivalent on C# I was looking for Microsoft.CSharp.CompilerServices.Operators but couldn't find
This is probably a common situation, but I couldn't find a specific answer on
Possible Duplicate: Last but one Char in vb.net String How do I find the
Sorry it's possibly a duplicate but in the other static interface they mention generics
Possible Duplicate: CSS 3 content selector? I couldn't find a way online to hide
Possible Duplicate: How to center DIV in DIV? Sounds simple but couldn't figure it
Possible Duplicate: How do I ensure a text box is alphanumeric but without a
Possible Duplicate: Replace words in a string, but ignore HTML Is it possible to

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.