Quantcast
Channel: Infragistics Community
Viewing all articles
Browse latest Browse all 2374

iOS Quick Tip: Split a UIImage into Multiple Parts

$
0
0
Given a UIImage, in some cases you may want to have the image split. For example, say you wanted to create a Flipboard or Paper like interface, where you have a screen shot of a UIVIew, and you want to have the appearance of it folding. To do this you can use the CGImageCreateWithImageInRect method in objective-c. The code below is an example of how to use this method. In this scenario we're splitting the image in half, a left and right image. -(void)splitImage:(UIImage *)image { CGFloat imgWidth...(read more)

Viewing all articles
Browse latest Browse all 2374

Trending Articles