UIButton: Making the hit area larger than the default hit area
问题 I have a question dealing with UIButton and its hit area. I am using the Info Dark button in interface builder, but I am finding that the hit area is not large enough for some people's fingers. Is there a way to increase the hit area of a button either programmatically or in Interface Builder without changing the size of the InfoButton graphic? 回答1: Since I am using a background image, none of these solutions worked well for me. Here is a solution that does some fun objective-c magic and