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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:48:32+00:00 2026-05-25T02:48:32+00:00

Here is a question for you: I’ve got a UIButton that we’ll call bottomButton

  • 0

Here is a question for you:

I’ve got a UIButton that we’ll call bottomButton. I have another UIButton that we’ll call topButton. What I want to do is place topButton on top of bottomButton such that when you tap topButton, it’s action is executed. The problem that I’m having is that when I tap topButton, its bottomButton‘s action that is getting executed.

So what I want to know is if it is possible to place a UIButton on another UIButton so that when tapped, only the top UIButton registers the tap. Savvy?

Any input is appreciated!

  • 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-25T02:48:33+00:00Added an answer on May 25, 2026 at 2:48 am

    Yes, it’s possible. There are three things to check out:

    1) Is topButton actually situated above bottomButton in the view stack?
      [UIView bringSubviewToFront:] may help here.
    2) Is topButton large enough to register the tap?
      Try making topButton larger than 44×44 and see if that helps.
    3) Make sure that topButton is enabled.

    EDIT

    I just saw your comment about adding topButton as a subview of bottomButton, and that’s likely to be part of the problem. You could try adding both bottomButton and topButton to a new UIView, and then add that new UIView where you had previously used bottomButton.

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

Sidebar

Related Questions

C# question here.. I have a UTF-8 string that is being interpreted by a
Similar question here but this is slightly different... I have two tables that I
first question here. I'm developing a program in C# (.NET 3.5) that displays files
First question here: it is a very short yet fundamental thing in Java that
The question raised from the question here . In order to have search engines
Background: Suppose I have a powershell function that understands and interprets small_commands such as:
Here is question for all those who have delivered WCF solutions to their clients/customers
Anal question here: we have Java enums which are their own classes, and enums
Simple question here; I've got a list of stop words in a CSV text
Simple question here (though perhaps not such a simple answer): 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.