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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:51:25+00:00 2026-05-31T09:51:25+00:00

Based on the HIG the size of the button that is tappable should be

  • 0

Based on the HIG the size of the button that is tappable should be 44×44. Now I have the following:

UIButton * stop = [UIButton buttonWithType:UIButtonTypeCustom];

        [stop setSize:CGSizeMake(15, 18)];


    [stop setBackgroundImage:[UIImage imageNamed:@"stop-gray.png"] forState:UIControlStateNormal];
    [stop addTarget:self action:@selector(stopPage:) forControlEvents:UIControlEventTouchUpInside];
    stopButton_ = [[UIBarButtonItem alloc] initWithCustomView:stop];

The UIBarButtonItem will be put inside a UIToolbar for the iphone. As you notice the size of the image there is smaller than 15, 18. Is there a way to make the tappable area for the UIBarButtonItem as 44×44? Or do I have to create a new icon which has an empty space so that the size is 44×44, what is the best practice for this in the iOS world?

  • 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-31T09:51:26+00:00Added an answer on May 31, 2026 at 9:51 am

    Why are you using a custom view? If you just want a custom image on the button, use -[UIBarButtonItem initWithImage:style:target:action:] and you’ll get the correct tappable area and standard system behaviors.

    If there’s something you actually need the custom view for, you shouldn’t need to change your image to leave empty space… just set the contentHorizontalAlignment and contentVerticalAlignment so that the image is centered instead of filling the view, then size your view however you want.

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

Sidebar

Related Questions

Based on info in the following question REST Content-Type: Should it be based on
based on Join MS Word documents I have made a console application that splices
Based on my reading, the following code: string aggregate = give + 'n'; Should
Based on an answer from a candidate I have a confusion regarding the functioning
based on .designer.cs, i infer that the menu's arrangement is based on the order
Iphone HIG Page 131 says this It’s important to emphasize that the reason to
Based on some standard web searching, I have narrowed down my problem to this:
Based on This solution I am trying to develop a script that would limit
Based on the above subplot: 1) I want to be able to have one
based on the docs for knockout.mapping.js it says that properties of a data object

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.