How can I enable/disable navigationItem.rightBarButton
item? I am calling the following code at -viewDidLoad
but it does nothing.
self.navigationItem.rightBarButtonItem =
[[[UIBarButtonItem alloc]
initWithTitle:@"Flow"
style:UIBarButtonItemStyleDone
target:self action:@selector(flowWithMe:)] autorelease];
self.navigationItem.rightBarButtonItem.enabled = NO;
I want to enable right Bar Button only on a particular action.