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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:28:25+00:00 2026-06-07T22:28:25+00:00

I have a simple view hierarchy example. Obviously the main view space is the

  • 0

I have a simple view hierarchy example.

enter image description here

Obviously the main view space is the primary space the user will interact with. At the bottom I have tabs that can pop up to indicate to the user where he/she is in the progression of the app. Normally, these tabs only take up the space indicated by the “Custom Tabs” rectangle at the bottom, but they can expand all the way up to fill the “Empty Space” box.

In order for the tabs to still be clickable, I had to make the tab view’s frame the full rectangle containing both the “Custom Tabs” space and “Empty Space” space. What this results in is that “Empty Space” not being interactive to the user when the tabs aren’t popped up, because the input is basically being consumed by that UIView, and not forwarded through the rest of the hierarchy.

I suppose the root of this problem is that both “Main View Space” and the “Empty Space + Custom Tabs” are both subviews of the main window.

Is there a way I can tell the system to forward the user input to the sibling views if the user didn’t actively tap on an interactive element? For example, doing something with the touchesBegan, touchesEnded etc. methods that would indicate to the OS that this view did not use the input.

EDIT

Here’s another version of the view, demonstrating the tate of one tab being open:

enter image description here

EDIT2

After some simple testing, it would seem that the default behavior is that the top most view gets the input first. This applies even if you have a clear UIView on top of a UITextField. The clear UIView will consume the input, preventing the UITextField from being editable

EDIT3

The way the tabs are supposed to work is the user can tap on a tab (sized as in the first picture), and then it will expand to display a thumbnail view associated with that tab (as in the second picture). The user can then optionally tap the tab once more to close it, and return the size to the original picture. In order for the tab to be clickable when it is open, I have to have the containing view be basically large enough to contain all 4 tabs as if they were open. This results in a lot of empty space in the containing view. This empty space results in essentially dead input space on the screen. If there were a button in the main view space that is covered by the empty space, the user would not be able to click on it. I would like to be able to avoid that behavior, and have that button covered by the empty space still be clickable.

  • 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-07T22:28:26+00:00Added an answer on June 7, 2026 at 10:28 pm

    Rather than trying to “forward” touches, I would modify your layout so that the tab view is only as big as the tabs, and change it’s .frame to be the larger rectangle in code only when you need it. For example, when a tab is clicked:

     CGRect tabFrame = tabView.bounds;
     tabFrame.origin.y = top_of_emptySpace;
     tabFrame.size.height = height_of_emptySpace + height_of_tabView;
     tabView.frame = tabFrame;
    

    then you can add the content you need. when you need it to go away, remove the content then do :

     CGRect tabFrame = tabView.bounds;
     tabFrame.origin.y = top_of_tabView;
     tabFrame.size.height = height_of_tabView;
     tabView.frame = tabFrame;
    

    There might be some tweaking required to make the content show up as you like, but this way, when the tabs are minimized, you won’t have to do anything extra to make the main view respond to touches correctly.

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

Sidebar

Related Questions

I have a simple Backbone view which uses jQuery UI's buttons. For example I
I have a simple Django view that just returns URL parameters, but if I
I have a simple table view which is editable. All I need the user
I have a simple custom view that is connected via outlet to a NIB.
I have a simple Partial View that I would like to automatically call a
I have a simple view that I'm using to experiment with AJAX. def get_shifts_for_day(request,year,month,day):
I have a fairly simple view hierarchy in my iPad app. Window -> RootView
Say I have a simple view, MyView . If I do: SELECT * FROM
I am trying to write a url.py where I have a simple view for
I have a simple list view with some check boxes in an alert dialog.

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.