问题标签 [ios14]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
9 回答
4170 浏览

swift - 无法获取 extensionBundleID 的描述符

在向 Xcode 项目添加扩展目标并尝试在 iOS 14 上运行它后,我收到一个错误:

SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget '***' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (***)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (***)}." UserInfo={NSLocalizedDescription=Failed to show Widget '***' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (***)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (***)}., NSUnderlyingError=0x7f9bac015910 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (***)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (***)}}} Domain: DTXMessage Code: 1

知道出了什么问题吗?

0 投票
3 回答
2797 浏览

ios14 - iOS 应用程序剪辑是否可以从 url 启动?

iOS 应用程序剪辑是否可以从 URL 启动?

苹果公司的描述说,二维码嵌入了一个加密的 URL 来访问这些剪辑。是否可以像使用深层链接一样直接使用该链接?

0 投票
1 回答
994 浏览

ios - 从 SwiftUI 颜色选择器中获取价值

iOS 14 附带了用于 UIKit ( UIColorWell)、AppKit ( NSColorWell) 和 SwiftUI ( ColorPicker) 的原生颜色选择器。

虽然颜色井具有selectedColor公开选定UIColor/NSColor值的属性,但 SwiftUIColorPicker采用Binding<Color>. 但是,我找不到任何信息如何从Color价值中获得任何有用的东西。

Color从 a创建 aUIColor很容易使用Color.init(_: UIColor),但似乎没有办法UIColor从现有的 aColor或提取颜色分量(例如,类似于该UIColor.getRed(_:green:blue:alpha:)方法的 RGB 值)。

如何从 SwiftUI 获取基础颜色值ColorPicker

0 投票
1 回答
114 浏览

swift - 隐藏录音指示器

任何人都知道如何在 ios14 中隐藏录制指示器?

我正在写一个相机应用程序,所以很清楚,当应用程序在使用时,相机和麦克风都在使用!

0 投票
2 回答
2869 浏览

ios - 如何在 iOS 14 @main 文件中获取 UIWindow 值?

我可以通过以下实现访问didFinishLaunchingWithOptions 。但是,我需要UIWindow变量。我不知道如何得到它。我正在使用 Xcode 12 测试版。iOS14,SwiftUI 生命周期。

0 投票
1 回答
7310 浏览

ios - iOS 14 中 UIDocumentPickerViewController 的初始化

我有一个UIDocumentPickerViewController只选择图像的。这在 iOS 13 中运行良好:

我正在尝试在 iOS 14 中实现相同的目标。

但是,init(documentTypes:in:)在 iOS 14.0 中已弃用。

所以我假设我必须使用这个初始化程序:init(forOpeningContentTypes:asCopy:)

forOpeningContentTypes参数需要一个数组UTType
我不确定如何使用/导入它。
是这样[UTType.Image]吗?

这甚至不会编译,因为Cannot find type 'UTType' in scope.
我也试过import MobileCoreServices,甚至import CoreServices,但这没有帮助。

新文档选择器初始化程序的文档指向这个UTTypeReference——所以我尝试使用它,但也找不到它。

我怎样才能UIDocumentPickerViewController在 iOS 14 中只选择图像?

更新

这有效(感谢@Warren):

0 投票
0 回答
188 浏览

react-native - React-native-fast-image 不适用于 ios14 OS xocde beta

当我想通过 Xcode beta 使用 iOS 14 时。React 本机快速图像似乎无法正常工作。从 s3 或某些远程存储提供图像时未加载图像

0 投票
1 回答
4160 浏览

ios - Firebase 消息传递 iOS 14

我已经在我的应用程序中设置了 Firebase Cloud Messaging 有一段时间了。我最近将我的一台设备更新到 iOS 14,并停止在该设备上接收它们。装有 iOS 13 的不同设备仍会收到它们。如果这是一个愚蠢的问题,我很抱歉哈哈,但这是我的应用程序代表:

我尝试使用firebase控制台中的“测试”按钮发送消息,并像正常一样发布消息。它确实正确注册了通知,并且在检查设置后,它看起来仍然正确。

0 投票
2 回答
6815 浏览

ios - 如何将按钮添加到 iOS 14 小部件

我正在尝试将按钮添加到具有系列类型“.systemLarge”的小部件。我想在不打开应用程序的情况下执行一些代码。

有谁知道该怎么做?

例如,快捷方式应用程序小部件包括您可以点击以执行快捷方式而无需打开应用程序的按钮。

0 投票
1 回答
114 浏览

ios - Objective-C 轻量级泛型不会编译

刚刚升级到 Xcode 12/iOS 14,Intents 框架正在尝试在各种头文件中编译这样的代码:

但编译器似乎不知道这ObjectType是通用占位符:

没有名为“ObjectType”的类型或协议

没有其他人对此抱怨,所以我猜我在这个非常古老的项目中有一些设置阻止了 Objective-C 泛型的编译,但我找不到任何东西。