更新时间:2022-11-08 23:06:05
我之前通过添加UIView(而不是UIButton)来完成此操作,然后将UIButton和UILabel添加到UIView。来自UIButton的点击仍然有效,你也有一个标签。你也可以添加其他任何东西。
I have done this before by adding a UIView (instead of the UIButton) then add the UIButton and UILabel to the UIView. The tap from the UIButton still works and you have a label too. You can also add anything else like this.