NSTextAttachment * attachment = [[NSTextAttachment alloc] init];
attachment.image = warningIma;
attachment.bounds = CGRectMake (0,0, warningIma.size.width, warningIma.size.height);
if (width < warningIma.size.width) {
attachment.bounds = CGRectMake (0,0, width, width/warningIma.size.width*warningIma.size.height);
}
NSAttributedString * attString = [NSAttributedString attributedStringWithAttachment:attachment];
return attString;
when inserting multiple large photo albums into textview"s attributedText with NSTextAttachment, sliding up and down looks a bit stuttered.
have done this friend, how to solve it.
maybe there is an alternative. -sharp-sharp-sharp problem description