Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change buttons in MFMailComposeViewController?

In my app I am using the MFMailComposeViewController. I have placed a back and Done button in the title bar. I have the title bar to be in black color, but I have the button background in blue color. How to change the button background color to black in color?

like image 715
Siva K Avatar asked Aug 26 '11 13:08

Siva K


1 Answers

You first have to change the button style: barButton.style = UIBarButtonItemStyleBordered;

Afterwards, the color of the navigation bar buttons can be changed with the following code:

[[mailComposer navigationBar] setTintColor:[UIColor blackColor]];
like image 164
Seega Avatar answered Sep 21 '22 00:09

Seega