Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing a warning in Xcode4.6

  • Loading branch information...
commit 0a5b50ff4cb7a77c30a6bbfb91a6639073d1d5ba 1 parent d7f24b5
@kgn authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 KGDiscreetAlertView.m
View
5 KGDiscreetAlertView.m
@@ -21,8 +21,7 @@ @implementation KGDiscreetAlertView
- (id)init{
if(self = [super init]){
- self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
- UILabel *label = self.label = [[UILabel alloc] init];
+ UILabel *label = [[UILabel alloc] init];
label.lineBreakMode = UILineBreakModeWordWrap;
label.backgroundColor = [UIColor clearColor];
label.textAlignment = UITextAlignmentCenter;
@@ -30,7 +29,9 @@ - (id)init{
label.shadowColor = [UIColor colorWithWhite:0 alpha:0.5];
label.shadowOffset = CGSizeMake(0, 1);
[self addSubview:label];
+ self.label = label;
+ self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
self.userInteractionEnabled = NO;
self.opaque = NO;
}
Please sign in to comment.
Something went wrong with that request. Please try again.