Skip to content

Commit

Permalink
OACalloutView tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
amjaliks committed Apr 28, 2011
1 parent 24bf058 commit d8dfead
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Source/Classes/Callout View/OACalloutView.m
Expand Up @@ -84,7 +84,6 @@ - (id)initWithLeftImage:(UIImage *)leftImage centerImage:(UIImage *)centerImage
self.calloutCenterImage = centerImage;
self.calloutRightImage = [rightImage stretchableImageWithLeftCapWidth:1 topCapHeight:0];
self.maxWidth = 320.f;
self.userInteractionEnabled = NO;
[self prepareView];
}
return self;
Expand All @@ -99,28 +98,23 @@ - (void)prepareView {
self.opaque = NO;

self.calloutLeft = [[[UIImageView alloc] init] autorelease];
self.calloutLeft.userInteractionEnabled = NO;
self.calloutLeft.image = self.calloutLeftImage;
[self addSubview:self.calloutLeft];

self.calloutCenter = [[[UIImageView alloc] init] autorelease];
self.calloutCenter.userInteractionEnabled = NO;
self.calloutCenter.image = self.calloutCenterImage;
[self addSubview:self.calloutCenter];

self.calloutRight = [[[UIImageView alloc] init] autorelease];
self.calloutRight.userInteractionEnabled = NO;
self.calloutRight.image = self.calloutRightImage;
[self addSubview:self.calloutRight];

self.calloutTitleLabel = [[[UILabel alloc] init] autorelease];
self.calloutTitleLabel.userInteractionEnabled = NO;
self.calloutTitleLabel.font = [UIFont boldSystemFontOfSize:TITLE_FONT_SIZE];
self.calloutTitleLabel.textColor = [UIColor whiteColor];
self.calloutTitleLabel.backgroundColor = [UIColor clearColor];

self.calloutSubtitleLabel = [[[UILabel alloc] init] autorelease];
self.calloutSubtitleLabel.userInteractionEnabled = NO;
self.calloutSubtitleLabel.font = [UIFont systemFontOfSize:SUBTITLE_FONT_SIZE];
self.calloutSubtitleLabel.textColor = [UIColor whiteColor];
self.calloutSubtitleLabel.backgroundColor = [UIColor clearColor];
Expand Down

0 comments on commit d8dfead

Please sign in to comment.