如何啓用/禁用navigationItem.rightBarButton
項目?我打電話給-viewDidLoad
下面的代碼,但它什麼都不做。如何禁用rightBarButtonItem
self.navigationItem.rightBarButtonItem =
[[[UIBarButtonItem alloc]
initWithTitle:@"Flow"
style:UIBarButtonItemStyleDone
target:self action:@selector(flowWithMe:)] autorelease];
self.navigationItem.rightBarButtonItem.enabled = NO;
我想只在特定動作上啓用正確的Bar Button。