jverkoey / nimbus

The iOS framework that grows only as fast as its documentation

Home Page:nimbuskit.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NIAttributedLabel BUG: after insert a image, do not display correctly

tyrone782 opened this issue · comments

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.