是否有一个iPhone SDK API可以用来获取当前的壁纸图像?

时间:2022-12-04 07:57:29

Is there an iPhone SDK API that I can use to get the current wallpaper image? I would like to use this image in a game.

是否有一个iPhone SDK API可以用来获取当前的壁纸图像?我想在游戏中使用这个图像。

3 个解决方案

#1


4  

As far as I'm aware, there is currently no API that enables you to do this.

就我所知,目前还没有API允许您这样做。

#2


4  

There is no API to do this, but you may be able to load /User/Library/LockBackground.jpg using +[UIImage imageWithContentsOfFile:]

没有API可以做到这一点,但是您可以使用+[UIImage imageWithContentsOfFile]加载/User/Library/LockBackground.jpg

Note: this file won't exist if the user hasn't changed from the default "globe" wallpaper

注意:如果用户没有从默认的“globe”壁纸中更改,则该文件将不存在

#3


1  

There is a private API, usual App Store rejection disclaimer applies

有一个私人API,通常应用程序商店拒绝免责声明

[UIImage defaultDesktopImage]

(用户界面图像defaultDesktopImage]

#1


4  

As far as I'm aware, there is currently no API that enables you to do this.

就我所知,目前还没有API允许您这样做。

#2


4  

There is no API to do this, but you may be able to load /User/Library/LockBackground.jpg using +[UIImage imageWithContentsOfFile:]

没有API可以做到这一点,但是您可以使用+[UIImage imageWithContentsOfFile]加载/User/Library/LockBackground.jpg

Note: this file won't exist if the user hasn't changed from the default "globe" wallpaper

注意:如果用户没有从默认的“globe”壁纸中更改,则该文件将不存在

#3


1  

There is a private API, usual App Store rejection disclaimer applies

有一个私人API,通常应用程序商店拒绝免责声明

[UIImage defaultDesktopImage]

(用户界面图像defaultDesktopImage]