1

对于已经向 Apple Store 提交应用程序的人来说,这是一个问题:对于UIButton您正在设置图像或背景的自定义,是否需要为每个按钮状态设置一个?有时我只为正常状态设置一个按钮图像,然后在点击按钮时系统会默认突出显示,但我看到在 Xcode 的控制台中有时会出现一些消息,说某些按钮的状态未设置...

谢谢!

编辑。控制台中的消息与此类似:

button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted and UIControlStateDisabled. state = 4 is interpreted as UIControlStateHighlighted.
4

1 回答 1

1

setImage:forState否 - 调用UIButton只是可选的。仅在您认为合适的情况下执行此操作。

于 2013-11-05T05:18:32.377 回答