Sunday, June 6, 2010

Change wallpaper programatically

Via:http://iphonedevwiki.net/index.php/UIImage
Undocumented APIs to set and get the iPhone wallpaper programmatically. I hope these are legalized soon. There would be no end to the kind of things that can be done with them

+defaultDesktopImage

Signature+(UIImage*)defaultDesktopImage;
Available in2.0 –

Return the user's lock screen image.

+setDesktopImageData:

Signature+(void)setDesktopImageData:(NSData*)jpegData;
Available in2.0 –

Replace the user's lock screen image by the given JPEG data.


1 comment:

  1. Is there a call to prompt the user to change it as part of the image picker?
    Or at least lunch the Pictures app so to force the user to go through the next steps to set it as the lock-screen wall paper?

    ReplyDelete