我使用UIButton
自动布局.当图像很小时,点击区域也很小.我可以想象几种方法来解决这个问题:
- 增加图像大小,即在图像周围放置一个透明区域.这并不好,因为当您定位图像时,您必须牢记额外的透明边框.
- 使用CGRectInset并增加大小.这不适用于自动布局,因为使用自动布局时,它将退回到原始图像大小.
Beside the two approaches above is there a better solution to increase the tap area of a UIButton?个