gpt4 book ai didi

ios - 将 SF Symbols 系统镜像用于静态 UIApplicationShortcutItem

转载 作者:行者123 更新时间:2023-12-02 04:52:03 26 4
gpt4 key购买 nike

指定主屏幕快速操作时,UIApplicationShortcutItems ,在您的 Info.plist 中,有没有办法使用 SF Symbols 中的系统镜像?

docs noting the available iOS keys除了指定 UIApplicationShortcutItemIconType 中的预定义枚举案例之一之外,未指定执行此操作的键。如UIApplicationShortcutIconTypeSearch .

通过新的初始化程序创建动态快速操作时可以使用系统镜像 UIApplicationShortcutIcon.init(systemImageName: String) 。是否有 Info.plist 键允许执行静态快速操作?

最佳答案

在 Info.plist 中使用 UIApplicationShortcutItemIconSymbolName 而不是 UIApplicationShortcutItemIconFile

关于ios - 将 SF Symbols 系统镜像用于静态 UIApplicationShortcutItem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57139226/

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