I worked with xib and with UIToolbar. BarButtonItem was created in xib file. I created IBOutlet for BarButtonItem. And I used this code to hide my BarButtonItem
self.myBarButtonItem.enabled = NO;
self.myBarButtonItem.title = nil;
this helped me.