How can I use Desktop as Background

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

  1. tomas123 macrumors newbie

    Jan 29, 2010
    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

    Nov 25, 2009
    Seattle, WA
    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

    Jan 29, 2010
    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


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

Share This Page