对于已经向 Apple Store 提交应用程序的人来说,这是一个问题:对于UIButton
您正在设置图像或背景的自定义,是否需要为每个按钮状态设置一个?有时我只为正常状态设置一个按钮图像,然后在点击按钮时系统会默认突出显示,但我看到在 Xcode 的控制台中有时会出现一些消息,说某些按钮的状态未设置...
谢谢!
编辑。控制台中的消息与此类似:
button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted and UIControlStateDisabled. state = 4 is interpreted as UIControlStateHighlighted.