我正在设置一些3D Touch功能,并希望使用从Web下载的图像(可以通过SDWebImage
缓存访问)作为UIApplicationShortcutItem
中的音频封面图片,就像苹果的音乐应用程序一样(请参见屏幕截图)。
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;