This question may have been asked earlier in a different form, but I'm trying to try a little deeper to understand the Share extensions, and therefore this question has more detailed information than the previously asked version of this question.
When writing the Share extension, we can subclass SLComposeServiceViewController and get viewDidLoad () and didSelectPost () events among others, but the only properties in VC are the contentText and textView and placeholder properties according to Apple's documentation
https://developer.apple.com/library/prerelease/ios/documentation/Social/Reference/SLComposeServiceViewController_Class/
Given that this is the case, the best way to do the following is:
First, the VC pad that appears with the website url
Secondly, access the URL to go to sharedDefaults as follows
let shareDefaults = NSUserDefaults(suiteName: "groupName") shareDefaults?.setObject(self.contentText, forKey: "stringKey") shareDefaults?.synchronize()
to be able to save it for later access from the application.
Any help in getting the URL would be greatly appreciated.
source share