
< /p>
В идеальном мире я также хотел бы реализовать способ масштабирования изображения на основе пользовательского ввода (например, увеличения размера шрифта). Есть идеи, как этого добиться?
спасибо
редактировать 1
вот как я создаю это:
NSTextAttachment *textAttachment = [[NSTextAttachment alloc] init];
textAttachment.image = [UIImage imageNamed:@"note-small.png"];
NSLog(@"here is the scale: %f", textAttachment.image.scale);
NSAttributedString *attrStringWithImage = [NSAttributedString attributedStringWithAttachment:textAttachment];
[headerAS replaceCharactersInRange:NSMakeRange([headerAS length], 0) withString:@" "];
[headerAS replaceCharactersInRange:NSMakeRange([headerAS length], 0) withAttributedString:attrStringWithImage];
Подробнее здесь: https://stackoverflow.com/questions/223 ... ent-or-set