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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:58:45+00:00 2026-05-18T23:58:45+00:00

I am a definite beginner to iPhone programming. I have two simple questions. 1)

  • 0

I am a definite beginner to iPhone programming. I have two simple questions.

1) I thought UIView would respond to touches like a UIButton but it appears I have to sub-class it. I’m not quite there yet. So my dirty little solution has been to place a UIButton over everything, make it full-screen, and turn off any color changes when it’s pressed or disabled and so on. This works great, my app now responds to any part of the screen and it doesn’t look like a button is being pressed. So the first part of my question is this: is this bad? If so, why?

2) Well nearly any part of the screen responds. For some reason, the very bottom 5% or so of the display doesn’t respond to the touch and I’ve no idea why. The button is stretched down to the bottom and there’s nothing else down there to intercept the touch. Any ideas?

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-18T23:58:46+00:00Added an answer on May 18, 2026 at 11:58 pm

    To capture touches, you simply need to implement whichever of the following methods you require within a view controller – using a UIButton for this is (at best) somewhat perverse and will end up limiting the type of functionality you can provide.

    - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
    - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
    - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
    - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
    

    For more information on these events, see the UIResponder class reference.

    In terms of your second point – I’ve personally noticed a small “dead zone” towards the bottom of the display (the home button being the “bottom”) – I think this is just the nature of the display, but I must confess I’ve never really looked into it in any detail.

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

Sidebar

Related Questions

I have a function (exercise 10.11 in Thompson's The Craft of Functional Programming )
I have found no definite way to detect IE6 using jquery.support instead of jquery.browser
I can't find anything definite using my favourite tool , however I thought I
I'm having trouble finding a definite specification of this in the standard. I have
I am not expecting a definite yes or no. Any knowledge you might have
My requirements are that Ads have a definite size, could be different media types
I have the following Prolog definite clause grammar: s-->[a],s,[b]. s-->[]. This will result in
How should the SQL SELECT query look like if I want to select definite
When I asked this question I got almost always a definite yes you should
Is there a definite DO and DONT when implementing seo urls? A lot of

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.