iphone - MFMessageComposeViewController: How to restrict to send message as Cellular Message not as iMessage -


i use mfmesagecomposeviewcontroller send message creating problems me.

when send message multiple recipients works fine whether imessages enable or disable settings. when send message single contact , and imessages enable settings gives me "delivery failed" in message app , show imessage.

how can force mfmessagecomposeviewcontroller send cellular message.

my code is:

[[[mfmessagecomposeviewcontroller alloc] init] autorelease]; if ([mfmessagecomposeviewcontroller cansendtext]) {     controller.body = @"sample text message";     controller.recipients = [nsarray arraywithobject:@"xxxxxxxxxxxx"];     controller.messagecomposedelegate = self;     } 

in short - can't. if imessage enabled on device , recipient available imessage client, message sent imessage. behaviour defined ios itself, can't change it.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -