UILabel 調整行間距

                NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
                [paragraphStyle setLineSpacing:3];//調整行間距
                [attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [note length])];
                _goodsRemarkLabel.attributedText = attributedString;
                [_goodsRemarkLabel sizeToFit];
相關文章
相關標籤/搜索