Share Coding

Tutorials, Problems, Stuffs …

Tag Archives: ios

App icon generator for Android and iOS

Click here to open

未命名

Advertisements

Screen Capture on IOS

CGImageRef UIGetScreenImage(void);

@implementation ...

- (void)buttonPressed:(UIButton *)button{
	CGImageRef screen = UIGetScreenImage();
	UIImage* image = [UIImage imageWithCGImage:screen];
	CGImageRelease(screen);
	UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
}