Many years later, I came up with a solution:
This is only possible via the private API, Using VK as an example:
NSExtension *shareExtension = [NSExtension extensionWithIdentifier: @"com.vk.vkclient.shareextension" error:nil];
self.vkExtension = shareExtension;//Strong reference otherwise it will be released
if (extension) {
SLComposeViewController *shareVC =
[SLComposeViewController composeViewControllerForExtension:shareExtension];
[self presentViewController:shareVC animated:YES completion:nill];
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: