NIAttributedLabel BUG: after insert a image, do not display correctly
tyrone782 opened this issue · comments
Linjiang Tan commented
NIAttributedLabel *label = [[NIAttributedLabel alloc] initWithFrame:CGRectMake(10, 100, 300, 0)];
[label setLineHeight:20];
[label setNumberOfLines:0];
[label setFont:[UIFont systemFontOfSize:14]];
[label setTextColor:[UIColor blackColor]];
[label setLineBreakMode:NSLineBreakByWordWrapping];
[label insertImage:[UIImage imageNamed:@"image"] atIndex:0];
[label sizeToFit];
[self.view addSubview:label];
Display a blank.
Other, After insert image, link show incorrectly, too.
Please Fix it.