Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

file 34 lines (27 sloc) 0.922 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
//
// 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
Something went wrong with that request. Please try again.