【发布时间】:2010-09-29 03:23:11
【问题描述】:
我 UIButton 使用 + buttonWithType:
我需要弄清楚的是如何手动更改按钮状态。有时我需要将其设置为“禁用”。
我通读了UIButton 文档,但似乎找不到任何关于手动设置按钮状态的信息。
任何想法将不胜感激。
【问题讨论】:
-
为了补充 Ben 所说的内容,请查看 UIControl 中的 enabled 属性:developer.apple.com/iphone/library/documentation/UIKit/…
标签: ios objective-c iphone cocoa-touch uibutton