0

I have subclassed RMMessageComposeViewController : MFMessageComposeViewController. The extra functionality that I'm aiming for is for the MFMessageComposeViewController to be able by itself to present a new message compose controller (over itself).

So I should from one RMMessageComposeViewController instance present a new one. The message result from the new instance should be sent to the parent (or "old" one). So I suppose I need to set the parent message compose controller as the delegate when I'm creating the child ("new" one).

Could someone please help me think this out, what instance variables I need to add (parents, children?) How to setup the child message compose controller?

Peter Warbo
  • 11,136
  • 14
  • 98
  • 193

1 Answers1

0

From the docs:

The message composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is unable to make further changes to the SMS content.

What you're trying to do there is explicitly not supported because of security concerns: It would make it easy for an application to forge messages. While you can probably push a view on top of it, I suspect your app would get rejected from the App Store for doing it.

I wouldn't be surprised if MFMessageComposeViewController prevents an application from creating more than one instance at a time, though I haven't confirmed this.

Tony
  • 3,470
  • 1
  • 18
  • 23
  • That's incorrect. If you use `UIAppearance` in iOS5 or greater, some UIKit elements can in fact be customized. – max_ Jul 12 '12 at 17:16
  • No, it's correct. MFMessageComposeViewController does not implement UIAppearance. The only part you can customize is the navigation bar, which is not part of the composition interface itself. – Tony Jul 12 '12 at 17:29
  • I'm not trying to modify the interface nor am I making changes to the SMS content. I'm merely presenting a new message compose controller over an existing one. – Peter Warbo Jul 12 '12 at 18:21
  • Tony, that's incorrect. Change the `UIAppearance` of the `UINavigationBar`s in your application and see what happens. – max_ Jul 17 '12 at 23:20
  • Yes, it changes the appearance of the navigation bar, just like I said: "The only part you can customize is the navigation bar". – Tony Jul 19 '12 at 16:57