This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
Hi
I am trying to get the IOS MFMessageComposeViewController loaded to my application. I am using the below code to get that done. But what I am getting is a white screen . Not able to view the text message UI. Not sure if I have done this properly , can anyone of you have a look and share your comments.
var MessageClass = objc.newClass("MessageClass", "MFMessageComposeViewController", ["MFMessageComposeViewControllerDelegate"],{messageComposeViewControllerDidFinishWithResult:function(controller, result){
alert("Message Send Status ->" + result);
}
});
var MessageVC = MessageClass.alloc().jsinit();
UIApplication.sharedApplication().keyWindow.rootViewController.presentViewControllerAnimatedCompletion(MessageVC, true, null);
Regards