Dillion/iOS-Flip-Transform

I want to Add 6 image in one flipview how i can please

oasis1996 opened this issue · 1 comments

i want to add my 6 image in one flipview you can help me

example
http://cdn.flipboard.com/dev_O/insideflipboard/iphonetips/TipsBlog_GearReadIt2.png

please help me!!!!!!

Hi,

You can take a screenshot of the 6 images by specifying the screen portion:

UIGraphicsBeginImageContext(CGSizeMake(widthWithLeftMargin, heightWithTopMargin));
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
CGImageRef imageRef = CGImageCreateWithImageInRect([screenshot CGImage], CGRectMake(leftMargin, topMargin, screenshotWidth, screenshotHeight));

UIGraphicsEndImageContext();

UIImage *screenshotAfterCrop = [UIImage imageWithCGImage:imageRef]; // pass this image to flipview
CFRelease(imageRef);