ibireme %!s(int64=9) %!d(string=hai) anos
pai
achega
3f1d97df3e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      YYText/Component/YYTextLayout.m

+ 1 - 1
YYText/Component/YYTextLayout.m

@@ -2663,7 +2663,7 @@ static void YYTextDrawBorder(YYTextLayout *layout, CGContextRef context, CGSize
             }
             
             NSMutableArray *drawRects = [NSMutableArray new];
-            CGRect curRect= ((NSValue *)runRects[0]).CGRectValue;
+            CGRect curRect= ((NSValue *)[runRects firstObject]).CGRectValue;
             for (NSInteger re = 0, reMax = runRects.count; re < reMax; re++) {
                 CGRect rect = ((NSValue *)runRects[re]).CGRectValue;
                 if (isVertical) {