How can I use Desktop as Background

Discussion in 'iOS Programming' started by tomas123, Jan 29, 2010.

  1. tomas123 macrumors newbie

    Joined:
    Jan 29, 2010
    #1
    Hello everyone
    I would very much like to know how I can use the iphone default background (just the actual buttons on the black background) as a background for my app. - like they do in the iWash bikini girl app. Does anyone know?
    regards from tomas.
    please help :)
     
  2. jo0 macrumors regular

    Joined:
    Nov 25, 2009
    Location:
    Seattle, WA
    #2
    I believe the program is set to take a screenshot of the home screen on launch, then uses that image as the background for the app.
     
  3. tomas123 thread starter macrumors newbie

    Joined:
    Jan 29, 2010
    #3
    hey thanks for your answer
    That sound like a good way to do it :)
    But - how can that be that done? - how do I take a screenshot of the home screen on launch?
     
  4. drf1229 macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #4
    Not sure if this will help, but this is how you can take a screen shot in the app:
    Code:
    UIGraphicsBeginImageContext(self.view.bounds.size);
    	[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    	UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
    	UIGraphicsEndImageContext();
    Note: You may need to import <QuartzCore/QuartzCore.h> in your class file for this to work.
     

Share This Page