iOS:我安装了共享扩展,但不可能从我的应用程序库中select图像
我用这个教程,但不可能得到我的应用程序中选定的图像。 我使用“新build/文件/目标”创build,然后在“function”中添加了一个组。 当我进入图像库时,我可以看到共享图标,但是当我点击button时,它什么也不做。
代码示例:
- (BOOL)isContentValid { // Do validation of contentText and/or NSExtensionContext attachments here return YES; } - (void)didSelectPost { // This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments. // Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context. [self.extensionContext completeRequestReturningItems:@[] completionHandler:nil]; } - (NSArray *)configurationItems { // To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here. return @[]; }
我想要的是select图像后,我点击分享button,我select我的应用程序在列表中,然后它打开我的应用程序与检索到的图像(S)。
我检查了苹果文档中的两个例子,但没有任何工作:
打开用…
来自苹果的Uti
这是我做的,但是这种技术只能从邮件应用程序中运行:
你有什么主意吗?
- 如果在后台运行一个动作,如何显示蓝色状态栏
- FBSDK(新Facebook SDK 4.0)实施不适用于使用Facebooklogin
- 使用AirDrop分享资产库中的video失败
- 在iOS中使用UIDocumentIntractionController将图像共享到WhatsApp
- UIActivityViewController和UIDocumentInteractionController
- 在我的iPhone应用程序中是否有任何开源产品可以让我像Instagram一样分享?
- 共享一个mkmapview截图
- 如何在共享菜单中列出?
- iOS 6共享消息,不像照片(UIActivityViewController和UIDocumentInteractionController)