iOS app deploy as internal dll from Unity in another ViewControler

This post is between Unity and Objective-C.

Hi, I've done some action to send SMS from Unity on iOS using internal DLL and some code in XCode.

I've got problems with closing an SMS window. Here is my XCode:


extern"C"void _SendSmsMessage(char *message) {
NSString *msgText = [NSStringstringWithUTF8String:message];
MFMessageComposeViewController *picker = [[MFMessageComposeViewControlleralloc] init];
picker.body = msgText;
[UnityGetGLViewController() presentViewController:picker animated:YEScompletion:nil];
}


As you can see I'm using Unity's ViewControler to bring app third party app. But the problem is when I want to close SMS message window ... there is no respons. I think that the problem is with ViewControler, this should be done with new VIewControler, not Unity's. I'm not an expert in Objective-C apps, I was trying to do new UIViewControler objects but no action.


Any help ?

iOS app deploy as internal dll from Unity in another ViewControler
 
 
Q