When sending SMS more than once with iOS 4.3 MFMessageComposeViewController always has data of the first message

341 Views Asked by At

I'm using MFMessageComposeViewController to send SMS from iPhone devices.

This works correctly with iOS 5 and later.

But in iOS 4.3 I can send SMS only once correctly. All next attempts present me MFMessageComposeViewController with data from first SMS.

I'm using Xcode 4.3.2 with ARC enabled.

1

There are 1 best solutions below

0
Misha On

By Shivan Raptor's request:

There is a need to call

[controller dismissModalViewControllerAnimated:YES]; 

in -

(void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result