gpt4 book ai didi

ios - Google 相册 iOS 应用程序如何自定义 native 共享表(例如 UIActivityViewController)?

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:15:38 44 4
gpt4 key购买 nike

当您在 iOS 版 Google 相册中分享照片时,Google 会在 UIActivityViewController 之上显示他们自己的自定义 View 。我知道这可以通过在顶层 UIWindow 上绘制您自己的 View 来完成一半,但 Google 也以某种方式隐藏了底部的“取消”按钮并填充了空白,使 UIActivityViewController 更“全屏”。他们是否以某种方式将 UIActivityViewController 的 View 嵌入到他们自己的 View 中?

Google 相册分享表:

Screenshot of Google Photos share sheet标准分享表:

Native UIActivityViewController

最佳答案

我正在寻找这个问题的答案,偶然发现了你的问题,所以我发了推文。 Matthew Bischoff 向我指出了这一点,它应该或多或少地解释了它是如何完成的。 https://github.com/Jasdev/JDSActivityVC

简短的回答是您将 UIActivityViewController 子类化并弄乱了生成的 View 。提示:您需要弄乱 View Controller 的 View 属性的 super View 。

关于ios - Google 相册 iOS 应用程序如何自定义 native 共享表(例如 UIActivityViewController)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47562936/

44 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com