Iphone 非活跃的伊巴布托主义

Iphone 非活跃的伊巴布托主义,iphone,objective-c,uibarbuttonitem,Iphone,Objective C,Uibarbuttonitem,有人知道联系人应用程序中的非活动完成按钮是如何完成的吗 我想实现类似的功能 到目前为止,我还没有在UIBarButtonItem上看到任何不活动的属性…使用启用的属性。当然,您需要对视图控制器中的输入控件使用自己的验证检查,以确定是否将其设置为启用 // Assuming the Done button is on the right [self.navigationItem.rightBarButtonItem setEnabled:NO]; // Disables the button ,

有人知道联系人应用程序中的非活动完成按钮是如何完成的吗

我想实现类似的功能


到目前为止,我还没有在UIBarButtonItem上看到任何不活动的属性…

使用
启用的属性。当然,您需要对视图控制器中的输入控件使用自己的验证检查,以确定是否将其设置为启用

// Assuming the Done button is on the right
[self.navigationItem.rightBarButtonItem setEnabled:NO]; // Disables the button
,从中继承的类,
UIBarButtonItem
,这就是为什么在
UIBarButtonItem
文档中找不到它的原因