Home:ALL Converter>MFMessageComposeViewController and UIAppearance, apple says don't customize

MFMessageComposeViewController and UIAppearance, apple says don't customize

Ask Time:2012-04-11T21:48:37         Author:overeasy

Json Formatter

Question

In the docs for MFMessageComposeViewController apple says:

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

But navigationbar and barbuttonitems in the MFMessageComposeViewController and the MFMailComposeViewController are inheriting all the styling I've done through UIAppearance.

I tried to revert to default appearance by using UIAppearance containment and setting the navigationbar/barbuttonitem background images to nil, but I couldn't figure out how to restore the default titleTextAttributes for the navigationbar and barbuttonitem.

I tried going the other route and using containment to restrict the styling to my navigation controller, but it seems like MFMessageComposeViewController and MFMailComposeViewController are contained within my navigaton controller anyway, so this isn't helping.

So my questions are:

1) will changing the navbar appearance on MFMessageComposeView and MFMailComposeView be an issue at app store approval? (if it's not an issue I can keep the custom styles.)

2) is there a way to present the ComposeViewController so that it won't be contained within my navigation controller?

3) or simply, how can i restore the default title text attributes for the barButtonItems and navigationBar?

Author:overeasy,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/10107276/mfmessagecomposeviewcontroller-and-uiappearance-apple-says-dont-customize
yy