小编Dar*_*iya的帖子

应用程序的 iCloud 文档目录未出现在文件应用程序的 iCloud 目录中

我的 iPhone 应用程序的文档文件夹与文件应用程序上的 iCloud 位置有问题。我的应用程序的文档文件夹出现在文件应用程序的设备端,但没有出现在文件应用程序的 iCloud 位置。iCloud 仪表板清楚地显示了使用我的应用程序创建的默认 iCloud 容器,但它没有出现在 iPhone 的文件应用程序上。如何让我的 iPhone 应用程序的文档文件夹出现在文件应用程序的 iCloud 位置?

我已经iCloud在 iPhone 应用程序项目的 XCode 中安装了默认容器。我将UIFileSharingEnabledas YES 和LSSupportOpeningDocumentsInPlaceas YES 添加到我的 plist 文件中。因此,我可以在 iPhone 的文件应用程序的设备端看到我的应用程序的文档文件夹,但在 iCloud 驱动器端看不到该文件夹​​。

我已将 iCloud 项目添加到苹果开发者帐户上此应用程序的配置中,以便我可以编辑其功能并启用所有 iCloud 复选框。

这样我就可以在 XCode 上获取 url UbiquityContainer

但是当我尝试使用iCloudDocumentSync库的iCloud.shared()?.checkAvailability()功能时,它说 iCloud url 为零,因此无法获取 iCloud 可用性。

我希望您能帮助我配置我的应用程序项目的云设置,以便我的应用程序文档目录出现在 iCloud 驱动器上,并且我可以正确使用 CloudKit。谢谢。

ios swift icloud-documents

6
推荐指数
1
解决办法
1588
查看次数

如何知道已安装的应用程序是通过 TestFlight 还是 AppStore 安装的?

我想知道如何检查用户安装的应用程序是通过Testflight或安装的AppStore。因此,基于此,我想在整个应用程序中进行一些环境更改。

无论如何通过编码找到它。苹果是否API为此提供任何服务?

任何帮助将不胜感激。

app-store ios testflight

4
推荐指数
1
解决办法
490
查看次数

“ImageSlideshow”类型的值?没有成员“pageControlBottomPadding”

从 swift3 升级到 swift4 时,出现此错误: Value of type ImageSlideshow?has no memberpageControlBottomPadding

我使用xcode10.1,swift4,目标ios9.0及以上。ImageSlideshow版本是1.7.0。

还有warnings: 'pageControl' is deprecated: Use pageIndicator.view instead

我认为这可能是因为 swift4 中的成员名称发生了更改, pageControl 及其成员不再使用,并尝试更改pageControlpageIndicatorpageIndicator.view

currentPageIndicatorTintColor但我搜索并没有找到andpageIndicatorTintColor和对应的成员名 pageControlBottomPadding

这是我的代码:

import ImageSlideshow
...
@IBOutlet weak var imageSliderView: ImageSlideshow!
...
imageSliderView.pageControl.currentPageIndicatorTintColor = Color.Laser.instance()
        imageSliderView.pageControl.pageIndicatorTintColor = UIColor.white
        imageSliderView.pageControlBottomPadding = 30.0
Run Code Online (Sandbox Code Playgroud)

截图图像

知道我应该使用什么新名字吗?或者有什么方法我仍然可以在 swift4 中使用“pageControl”?非常感谢。

ios pagecontrol swift4 xcode10.1

3
推荐指数
1
解决办法
585
查看次数