I want to set color of "Done" button on navigation bar like this image:
Although, I've set code as self.doneButton.enabled = NO;
but Done button still has a white color. It does not change color like image.
How to set the code to change text color done button like Done button in the image above? Please help me to solve this problem. I appreciate your help.
Try This
UIBarButtonItem *rightBarButton=[[UIBarButtonItem alloc]initWithTitle:@"Done" style:UIBarButtonItemStylePlain target:self action:@selector(editProfileClick)];
rightBarButton.tintColor=[UIColor whiteColor];
self.navigationItem.rightBarButtonItem = rightBarButton;
-(void)editProfileClick
{
//your methods
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With