Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: drawing-utils
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.922 kb
//
// SSAddressBarTextFieldBackgroundViewInnerView.m
// SSToolkit
//
// Created by Sam Soffes on 2/8/11.
// Copyright 2011 Sam Soffes. All rights reserved.
//
#import "SSAddressBarTextFieldBackgroundViewInnerView.h"
#import "UIImage+SSToolkitAdditions.h"
@implementation SSAddressBarTextFieldBackgroundViewInnerView
#pragma mark - UIView
- (id)initWithFrame:(CGRect)aFrame {
if ((self = [super initWithFrame:aFrame])) {
self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
self.backgroundColor = [UIColor clearColor];
self.opaque = NO;
self.clipsToBounds = YES;
self.userInteractionEnabled = NO;
self.contentMode = UIViewContentModeRedraw;
}
return self;
}
- (void)drawRect:(CGRect)rect {
CGSize size = self.frame.size;
[[UIImage imageNamed:@"SSAddressBarTextFieldBackground.png" bundleName:kSSToolkitBundleName] drawAsPatternInRect:CGRectMake(0.0f, 0.0f, size.width, size.height)];
}
@end
Jump to Line
Something went wrong with that request. Please try again.