youngsoft / MyLinearLayout

MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView RTL
MIT License
4.41k stars 899 forks source link

布局视图能否扩大点击区域? #121

Closed coderWeil closed 4 years ago

coderWeil commented 4 years ago

布局视图可以添加点击事件,如果想扩大点击区域,之前用UIButton的时候是写一个分类自己设置点击区域,这里能否也提供设置点击区域的属性呢?

coderWeil commented 4 years ago

解决了,通过设置padding值可以增大布局视图的尺寸,结合设置背景色,可以实现点击区域的增大