How do you to set the tint of this yellow button to be gray? I have tried adding an image, but have had no luck.
Here is the screenshot:
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setBackgroundImage:[UIImage imageNamed:@"button_main.png"]
forState:UIControlStateNormal];
[button addTarget:self action:@selector(GotoSettings)
forControlEvents:UIControlEventTouchUpInside];
button.frame = CGRectMake(x, y, x1, x2);
UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithCustomView:menu];
self.navigationItem.rightBarButtonItem = menuButton;
[button release];
[menuButton release];