ibireme hace 9 años
padre
commit
83e450fa00
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      YYText/YYLabel.m

+ 2 - 1
YYText/YYLabel.m

@@ -351,11 +351,12 @@ static dispatch_queue_t YYLabelGetReleaseQueue() {
 #pragma mark - Override
 
 - (instancetype)initWithFrame:(CGRect)frame {
-    self = [super initWithFrame:frame];
+    self = [super initWithFrame:CGRectZero];
     if (!self) return nil;
     self.backgroundColor = [UIColor clearColor];
     self.opaque = NO;
     [self _initLabel];
+    self.frame = frame;
     return self;
 }