Kjuly
Kjuly

Reputation: 35171

How to modify the style of the action sheet for MFMailComposeViewController object's cancel button

I have a MFMailComposeViewController object with a navigation bar in UIBarStyleBlack style. When press the Cancel button on the view of MFMailComposeViewController, there will show an action sheet with default style. What I want is to change its style to UIActionSheetStyleBlackTranslucent, like:

[theActionSheet setActionSheetStyle:UIActionSheetStyleBlackTranslucent];

But how can I get this action sheet and modify it? Is it possible?

Upvotes: 1

Views: 924

Answers (1)

Scott Berrevoets
Scott Berrevoets

Reputation: 16946

From the Apple docs:

The mail composition interface itself is not customizable and must not be modified by your application.

The style of the action sheet is part of the UI and can't be modified. No workaround either, MFMailComposeViewController does not have any public properties/methods that would let you do that.

Upvotes: 1

Related Questions