Ich richte eine 3D - Touch - Funktion ein und möchte ein Bild, das aus dem Internet heruntergeladen wurde (über den Cache SDWebImage
), als Audio - Coverbild in einem UIApplicationShortcutItem
verwenden, genau wie Apples Musik - App (siehe Bildschirmfoto).UIApplicationShortcutItem - Kann ich ein aus dem Internet heruntergeladenes Bild als UIApplicationShortcutIcon verwenden?
Ist das möglich? Es sieht so aus, als wäre es nicht so, wie ich das Bild nicht in das Bündel der App einfügen kann, soweit ich weiß. Ich denke, Apple macht etwas, was Entwickler noch nicht tun können?
UIApplicationShortcutItem
‚s docs haben nur die folgenden:
// 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;