1

So I'm writing an app to demo a share extension that I've written, but I'm not quite sure how to display the extension menu like in the photos app. I have this code which I got off the reference website, but it's not displaying anything.

NSExtensionContext *context = [[NSExtensionContext alloc] init];
[self beginRequestWithExtensionContext:context];

Is there any other things I need to do besides passing in my input items?

Andrew
  • 15,357
  • 6
  • 66
  • 101

2 Answers2

0

You need to follow the guide over on Apple's website. I'm not sure if what you want is a share extension, action extension, or photo editing extension. In each case, you need to specify the NSExtensionPointIdentifier and/or NSExtensionAttributes in your plist file.

If you had created an extension template from Xcode 6, it should automatically configure this for you.

Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
0

May be help you. Apple provides sample code for ImageInverter: Creating Action Extensions

There are concept for Action Extensions.

Ashvin
  • 8,227
  • 3
  • 36
  • 53