Skip to content

Commit

Permalink
fixing a warning in Xcode4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kgn committed Feb 4, 2013
1 parent d7f24b5 commit 0a5b50f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions KGDiscreetAlertView.m
Expand Up @@ -21,16 +21,17 @@ @implementation KGDiscreetAlertView


- (id)init{ - (id)init{
if(self = [super init]){ if(self = [super init]){
self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin; UILabel *label = [[UILabel alloc] init];
UILabel *label = self.label = [[UILabel alloc] init];
label.lineBreakMode = UILineBreakModeWordWrap; label.lineBreakMode = UILineBreakModeWordWrap;
label.backgroundColor = [UIColor clearColor]; label.backgroundColor = [UIColor clearColor];
label.textAlignment = UITextAlignmentCenter; label.textAlignment = UITextAlignmentCenter;
label.textColor = [UIColor whiteColor]; label.textColor = [UIColor whiteColor];
label.shadowColor = [UIColor colorWithWhite:0 alpha:0.5]; label.shadowColor = [UIColor colorWithWhite:0 alpha:0.5];
label.shadowOffset = CGSizeMake(0, 1); label.shadowOffset = CGSizeMake(0, 1);
[self addSubview:label]; [self addSubview:label];
self.label = label;


self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
self.userInteractionEnabled = NO; self.userInteractionEnabled = NO;
self.opaque = NO; self.opaque = NO;
} }
Expand Down

0 comments on commit 0a5b50f

Please sign in to comment.