iOS buttonset Enable or Disable

Posted jzdwajue

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS buttonset Enable or Disable相关的知识,希望对你有一定的参考价值。

在 .h 文件里:

@property (retain, nonatomic) IBOutlet UIButton *btnMyButton;

在函数方法中:

btnMyButton.enabled = NO; // disable my button
btnMyButton.enabled = YES; // enable my button

转载自:

http://stackoverflow.com/questions/9012100/enable-disable-a-button-in-xcode-4-2




以上是关于iOS buttonset Enable or Disable的主要内容,如果未能解决你的问题,请参考以下文章

关于The requested PHP extension ext-pdo_sqlite * is missing from your system. Install or enable PHP

How to Enable Trace or Debug for APIs executed as SQL Script Outside of the Applications ?

Maven错误 diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamon

mysql报错:You must at least set –server-id to enable either a master or a slave

不同范围内的多个 ID 选择器? [关闭]

实体框架迁移 NuGet 错误