1

I have made an Xcode Source Editor extension, and it lives within a container app, as Apple recommends. The container app handles the UI, and accordingly the input from the user that needs to be set for my extension to work right.

How can I take the input I get in the container app and make it available to the extension to access when it needs it? I tried using NSUserDefaults but it didn't work as I hoped.

Lizza
  • 2,769
  • 5
  • 39
  • 72
  • Whay the `NSUserDefaults` approach didn't work exactly ? It should work if setup properly. – Bogdan Farca Nov 03 '16 at 08:19
  • I don't know, the value was set in the main app and then nil when I tried pulling it out in the extension. What other setup is required? – Lizza Nov 03 '16 at 22:18
  • Take a look at this post here http://stackoverflow.com/questions/24118918/sharing-data-between-an-ios-8-share-extension-and-main-app. – Bogdan Farca Nov 04 '16 at 07:24

0 Answers0