6
我設置了一些3D觸控功能,並想使用已經從網上下載的圖像作爲音頻封面圖片(可以通過SDWebImage
的高速緩存訪問)在UIApplicationShortcutItem
,就像蘋果公司的音樂應用程序(見截圖)。UIApplicationShortcutItem - 我能否使用網絡作爲UIApplicationShortcutIcon下載的圖像?
這可能嗎?它看起來並不像我不能把圖像中的應用程序的包,據我所知?我猜蘋果正在做一些開發者無法做到的事情?
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;