如何防止UIButton在按下时突出显示? [英] How can I prevent a UIButton from highlighting when pressed?
本文介绍了如何防止UIButton在按下时突出显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当按下 UIButton
时,正常情况是它将突出显示,即阴影类似的图层将覆盖图像。有没有办法防止这种情况发生?有没有属性来处理这个?
When an UIButton
is pressed, the normal situation is that it will be highlighted i.e. a shadow like layer will cover the image. Is there a way to prevent this from happening? Is there an attribute to handle this?
推荐答案
通常你不要按下Xcode的按钮,老鼠)。但是,抠像: adjustmentsImageWhenHighlighted
设置为否
会做的伎俩。
You normally don't press a button with Xcode, you use your finger (or mouse). But nitpicking aside: adjustsImageWhenHighlighted
set to NO
will do the trick.
这篇关于如何防止UIButton在按下时突出显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文