且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当应用程序在后台运行时,在iOS应用程序的锁定屏幕上添加图像

更新时间:2022-12-27 11:05:20

音乐应用可以更改锁屏壁纸,因为iOS会自动显示歌曲的专辑图片/正在播放的播客/等(参见 MPMusicPlayerController docs )。据我所知,它不是开发人员公开可用的API。

Music apps can change the lock screen wallpaper because iOS automatically displays the album artwork for the song/podcast/etc that's playing (see MPMusicPlayerController docs). As far as I know, it's not an API that's publicly available to developers.