Created
June 24, 2011 22:03
-
-
Save jweinberg/1045783 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "JWPatternImageView.h" | |
@implementation JWPatternImageView | |
@synthesize patternImage; | |
- (void)dealloc; | |
{ | |
self.patternImage = nil; | |
[super dealloc]; | |
} | |
- (void)drawRect:(CGRect)rect; | |
{ | |
CGContextRef ctx = UIGraphicsGetCurrentContext(); | |
CGContextDrawTiledImage(ctx, (CGRect){CGPointZero, self.patternImage.size}, [self.patternImage CGImage]); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment