Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在迁移到 iOS 7 SDK 后,具有用于正常和突出显示状态的自定义背景图像的 UIButton 在突出显示时突然变暗。
adjustsImageWhenHighlighted设置为 NO 并且在新的 SDK 之前它工作正常。
adjustsImageWhenHighlighted
按钮在 XIB 中定义,稍后在代码中分配文本。
改变了什么?
事实证明,在迁移过程中,界面构建器将按钮类型从自定义更改为系统。
系统按钮执行此行为,即使adjustsImageWhenHighlighted关闭时也是如此。
将按钮类型更改回 后Custom,问题已修复。
Custom