Open Gallon opened 8 years ago
当button为自定义的button,上面为图片,下面为文字的时候,用这个方法自动计算宽度的时候,会有问题
setupAutoSizeWithHorizontalPadding设置自适应宽度后,button的titleEdgeInsets设置失效了,去掉自适应宽度就又好了
如果我想要宽度自适应,这个要怎么操作呢?
当button为自定义的button,上面为图片,下面为文字的时候,用这个方法自动计算宽度的时候,会有问题