Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing a warning in Xcode4.6

  • Loading branch information...
commit 0a5b50ff4cb7a77c30a6bbfb91a6639073d1d5ba 1 parent d7f24b5
David Keegan authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 KGDiscreetAlertView.m
5 KGDiscreetAlertView.m
@@ -21,8 +21,7 @@ @implementation KGDiscreetAlertView
21 21
22 22 - (id)init{
23 23 if(self = [super init]){
24   - self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
25   - UILabel *label = self.label = [[UILabel alloc] init];
  24 + UILabel *label = [[UILabel alloc] init];
26 25 label.lineBreakMode = UILineBreakModeWordWrap;
27 26 label.backgroundColor = [UIColor clearColor];
28 27 label.textAlignment = UITextAlignmentCenter;
@@ -30,7 +29,9 @@ - (id)init{
30 29 label.shadowColor = [UIColor colorWithWhite:0 alpha:0.5];
31 30 label.shadowOffset = CGSizeMake(0, 1);
32 31 [self addSubview:label];
  32 + self.label = label;
33 33
  34 + self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin;
34 35 self.userInteractionEnabled = NO;
35 36 self.opaque = NO;
36 37 }

0 comments on commit 0a5b50f

Please sign in to comment.
Something went wrong with that request. Please try again.