logo
  • 教程列表
  • SO官方文档
  • NSTextAttachment
    • NSTextAttachment 示例
  1. StackOverflow 文档
  2. Objective-C Language 教程
  3. NSTextAttachment
  4. NSTextAttachment 示例

NSTextAttachment 示例

Created: November-22, 2018

NSTextAttachment *attachment = [[NSTextAttachment alloc] init];
attachment.image = [UIImage imageNamed:@"imageName"];
attachment.bounds = CGRectMake(0, 0, 35, 35);
NSAttributedString *attachmentString = [NSAttributedString attributedStringWithAttachment:attachment];
  • NSTextAttachment

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明