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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:38:14+00:00 2026-06-12T16:38:14+00:00

I have an app that is going to have a pretty extensive form in

  • 0

I have an app that is going to have a pretty extensive form in it. Fifty or so entries. My hierarchy looks like this. Because of the overlying views the textfields in the form view do not get a cursor in them when clicked:

viewController.view (UIView)

svParent (UIScrollView)

section(UIView)

titlebar(UIView)/contentWrapper(UIScrollView) (siblings the following are children of contentWrapper)

form(UIView)

textfield(UITextField)

textfield(UITextField)

textfield(UITextField)

…and so on…

I understand the concept of over riding hitTest on a superview so that an object on a subview can be accessed but I’m not exactly sure how to program it.

In my viewController I added this:

 - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {

    NSLog(@"ok");
    return NO;
}

but no matter where I click in the simulator window nothing gets logged. Is there something else I need to do? And then can someone clarify what happens after – is this some automagical thing where when functioning properly the lowest subview will get first responder status and become active (i.e. in the case of a textfield editable).

  • 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-12T16:38:16+00:00Added an answer on June 12, 2026 at 4:38 pm

    - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event ;

    AFAIK it is implemented in UIView subclass, and not in view controller.

    For better understanding hierarchy, refer this answer

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

Sidebar

Related Questions

I'm currently making a note web app that going pretty well. I have the
I have a module with a pretty annoying tree structure like this APP -CODE
I have a rails app that I'm going to host on engineyard and want
I have an App that downloads and displays images from URL's. This works fine
I have a pretty basic app flow that is quite linear, so it fits
I have a nice little app on the app store that does pretty well
I have this Metro App project that I just tried building for the Windows
I have an app which contains a pretty large form. I subclassed UILabel so
I have a nice little app on the app store that does pretty well
have an app that finds your GPS location successfully, but I need to be

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.