Reputation: 25256
The Human Interface Guidelines says "Create controls that are at least 29 pixels high and provide a target area that’s 44 pixels high".
So I was wondering when I use an UIButtonTypeCustom with stretchable Background Image and Text, is there a way to set the target area?
Just changing the buttons frame to 44 pixel stretches the background image.
In case there is no way set the target area, is the recommended way to just use a 44px high background image?
Upvotes: 0
Views: 486
Reputation: 8488
If you put a second UIButton of type UIButtonTypeCustom on top of the image you can have the touch area be any size that you want.
Upvotes: 1