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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:19:33+00:00 2026-05-15T15:19:33+00:00

I have 5 round buttons in a row, each one, 40×40 pixels. Between each

  • 0

I have 5 round buttons in a row, each one, 40×40 pixels. Between each one, I have 20 pixels.

40×40 pixels is too small to touch, but as I have 20 pixels of space between each button I can extend the button touch area to 60×60 pixels, making it easy to touch. I could simply using the dirty solution of creating a square 60×60 pixels transparent image, put this over the button and make this touchable, but I know it is possible to extend a button touch area by creating a custom class and changing a parameter.

I know this is possible because I saw this done before (but I cannot find the URL). I know it is something related to hitTest.

How can this be done?
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-15T15:19:34+00:00Added an answer on May 15, 2026 at 3:19 pm

    Eiko is absolutely right. Here’s some simple code you can use that is independent of the button’s location that somebody gave me for expanding the Info button frame.

    CGRect newInfoButtonRect = CGRectMake(infoButton.frame.origin.x - 25, 
                                              infoButton.frame.origin.y - 25, 
                                              infoButton.frame.size.width + 50, 
                                              infoButton.frame.size.height + 50);
        [infoButton setFrame:newInfoButtonRect];
    

    You might want to watch out if you’re using a background image as opposed to an image ( button setBackgroundImage: vs button setImage: forState:) because a background image will stretch with the frame while a normal image will not.

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

Sidebar

Related Questions

I have the following markup for buttons (can be changed, but I really don't
If you have round robin enabled in Vxworks and your task gets preempted by
If you have round robin scheduling enabled in VxWorks, and you use taskLock() to
I have a CGFloat value which I want to round to 3 digits after
If I have a double (234.004223), etc., I would like to round this to
How to get the Grid.Row Grid.Column from the added control? Basically I have 16
I have to add radio buttons in my iPhone application. For that I have
I have created 10 buttons programmatically and set the titles in the button. Now
I have a script that appends some rows to a table. One of the
i have a input tag which is non editable, but some times i need

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.