I am trying to set the alpha value of a navigation element to animate the right pane, but I cannot force it to change the value. Any suggestions?
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Avbryt" style:UIBarButtonItemStyleBordered target:self action:@selector(cancelEditing)] autorelease]; self.navigationItem.rightBarButtonItem.customView.alpha = 0.5;
In your code you are trying to set alphafor rightBarButtonItem customView, but your rightBarButton element does not contain any custom view. Is not it?
alpha
customView
UIBarButtonItem item UIBarItem, , , NSObject. , alpha . alpha customView, , customView; -)
UIBarButtonItem
UIBarItem
NSObject