I've have a share extension for an iOS app that has a custom UI. When running the extension the storyboard is loaded and the UI presented OK, but beginRequestWithExtensionContext
isn't called.
The (simplified) view controller code:
class ShareViewController: UIViewController, NSExtensionRequestHandling {
// This is called…
override func viewDidLoad() {
super.viewDidLoad()
}
// …but this isn't!
override func beginRequestWithExtensionContext(context: NSExtensionContext) {
println("beginRequestWithExtensionContext")
}
}
NSExtensionAttributes:
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<dict>
<key>NSExtensionActivationSupportsImageWithMaxCount</key>
<integer>1</integer>
</dict>
</dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.share-services</string>
<key>NSExtensionMainStoryboard</key>
<string>Share</string>
</dict>
</plist>
Any thoughts as to why beginRequestWithExtensionContext
might not be getting called?