jiangzhou 9 年之前
父节点
当前提交
cc548278b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      YYText/Utility/NSAttributedString+YYText.m

+ 1 - 1
YYText/Utility/NSAttributedString+YYText.m

@@ -227,7 +227,7 @@ static float _YYDeviceSystemVersion() {
 - (UIColor *)yy_underlineColorAtIndex:(NSUInteger)index {
     UIColor *color = nil;
     if (kSystemVersion >= 7) {
-        [self yy_attribute:NSUnderlineColorAttributeName atIndex:index];
+        color = [self yy_attribute:NSUnderlineColorAttributeName atIndex:index];
     }
     if (!color) {
         CGColorRef ref = (__bridge CGColorRef)([self yy_attribute:(NSString *)kCTUnderlineColorAttributeName atIndex:index]);