Simulating sent SMS on iPhone
===

Since debugging is extremely slow with Xcode 4.3 on iOS 5.1 when starting/installing the app on the device I use the simulator which starts much faster. (see my question regarding this issue here http://stackoverflow.com/questions/11541288/xcode-4-3-with-ios5-1-pauses-about-10secs-when-debug-starts-simulator-starts-i)


So all I need to do is something like this:

    MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
    picker.messageComposeDelegate = delegate;
    NSString *s = @"1234567";
    picker.recipients =[NSArray arrayWithObject: s];   
    picker.body =smsTxt;
    if (simulationMode) {
        MessageComposeResult result = MessageComposeResultSent;            <-----------
        [delegate messageComposeViewController:picker didFinishWithResult: result];
    } else
        [delegate presentModalViewController:picker animated:YES];


Here the problem is now that when executing on iOS-Simulator the MFMessageComposeViewController can't be instantiated and always yields nil.

**Is there a way to create another object MyOwnMFMessageComposeViewController on iOS simulator which is compatible to MFMessageComposeViewController and can be passed in the same method like MFMessageComposeViewController?**

Something like this:

        MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
        picker.messageComposeDelegate = delegate;
        NSString *s = @"1234567";
        picker.recipients =[NSArray arrayWithObject: s];   
        picker.body =smsTxt;
        if (simulationMode) {
            MyOwnMFMessageComposeViewController *mypicker = [[MFMessageComposeViewController alloc] init];
            mypicker.messageComposeDelegate = delegate;
            NSString *s = @"1234567";
            mypicker.recipients =[NSArray arrayWithObject: s];   
            mypicker.body =smsTxt;
            MessageComposeResult result = MessageComposeResultSent;   
            picker = (MFMessageComposeViewController) mypicker;          
            [delegate messageComposeViewController:picker didFinishWithResult: result];
        } else
            [delegate presentModalViewController:picker animated:YES];

