Setting wallpaper?

Discussion in 'iOS Programming' started by tsornin, Sep 4, 2008.

  1. macrumors newbie

    Joined:
    Jul 23, 2002
    #1
    Is there a way for my app to allow the user to change their wallpaper? I'd like to include some images in my app and let the user choose one for their default wallpaper image.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    No: a user can only alter their wallpaper through the official settings app.
     
  3. thread starter macrumors newbie

    Joined:
    Jul 23, 2002
    #3
    Drat. What about saving an image from my app to their camera roll (or photo library)?
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I've no idea: read the documentation to see if this is possible.

    Edit to add: I'd say no. Access to the photo library is via the UIIMagePickerController which does not provide any way to write to the library.
     
  5. macrumors newbie

    Joined:
    Sep 20, 2008
    #5
    If you can get your image in an UIImage object, you can use the following code:

    UIImageWriteToSavedPhotosAlbum(yourUIImageObject, nil, nil, nil);

    That adds your image to the photo library. You should check out the documentation on what all parameters do.
     

Share This Page