使用自定义布局进行共享扩展 [英] Making share extension with custom layout
问题描述
我想用自定义标注开发ios共享扩展。在Apple文档中
I want to develop ios share extention with custom callout. In apple documents
要提供自定义撰写视图而不是标准视图,请取消选择
使用标准社交撰写界面 Xcode目标 - 添加
窗格。取消选中此复选框后,默认的
SharingViewController类基于NSViewController或
UIViewController,具体取决于您选择的平台。
To provide a custom compose view instead of the standard one, deselect "Use standard social compose interface" in the Xcode target-adding pane. When this checkbox is deselected, the default SharingViewController class is based on NSViewController or UIViewController, depending on the platform you chose.
但我找不到复选框。任何人都可以告诉我如何禁用它,是否有任何良好的分享扩展教程。
but I can't find the check box. Can anyone show me how to disable it and is there any good tutorials for share extention.
谢谢
推荐答案
看起来该选项已被删除(或从未进入公开发布)。
It looks like that option was removed (or never made it to a public release).
无论如何,通过阅读说明,它听起来你只需要创建一个共享扩展,并将 ShareViewController
的超类从 SLComposeServiceViewController
更改为 UIViewController
,并摆脱 isContentValid
, didSelectPost
和 configurationItems
类定义中的存根方法。
Anyway, from reading the description, it sounds like you just need to create a share extension, and change the ShareViewController
's superclass from SLComposeServiceViewController
to UIViewController
, and get rid of the isContentValid
, didSelectPost
, and configurationItems
stub methods in the class definition.
然后你可以在 MainInterface.storyboard
。
这篇关于使用自定义布局进行共享扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!