Я изменяю заголовок UIBarButtonItem во время выполнения, но он не работает
if(self.toolbarItems!=nil)
{
NSArray *toolbaritem=self.toolbarItems;
UIBarButtonItem* tmpeditButton =[toolbaritem objectAtIndex:0];
tmpeditButton.title=@"Done";
NSLog(@"log %@",tmpeditButton.title);
}
В журнале всегда отображается значение NULL. Почему и как это исправить?