我正在设置一些 3D Touch 功能,并希望使用从网络上下载的图像(可以通过SDWebImage
的缓存访问)作为 a 中的音频封面图像UIApplicationShortcutItem
,就像 Apple 的音乐应用程序一样(见屏幕截图)。
这可能吗?看起来不是因为据我所知,我无法将图像放入应用程序的捆绑包中?我猜苹果正在做一些开发人员还不能做的事情?
UIApplicationShortcutItem
的文档只有以下内容:
// Create an icon using a system-defined image.
+ (instancetype)iconWithType:(UIApplicationShortcutIconType)type;
// Create an icon from a custom image.
// The provided image named will be loaded from the app's bundle
// and will be masked to conform to the system-defined icon style.
+ (instancetype)iconWithTemplateImageName:(NSString *)templateImageName;