最小化按钮点击区域变大

This commit is contained in:
fengshuo
2021-12-04 01:00:15 +08:00
parent f1a69a43a2
commit 377a7ccdba

View File

@@ -272,7 +272,7 @@
_closeButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_closeButton setImage:[UIImage imageNamed:@"room_mini_close"] forState:UIControlStateNormal];
[_closeButton addTarget:self action:@selector(closeButtonAction:) forControlEvents:UIControlEventTouchUpInside];
[_closeButton setEnlargeEdgeWithTop:5 right:5 bottom:5 left:5];
[_closeButton setEnlargeEdgeWithTop:10 right:10 bottom:10 left:10];
}
return _closeButton;
}