可以通过largeTitleTextAttributes自定义新的大标题功能,(与任何其他属性一样)dictionarywithNSAttributedStringKey键。其中一个键是NSAttachmentAttributeName/attachment。考虑一下:letattachment=NSTextAttachment()attachment.image=UIImage(named:"foo")attachment.bounds=CGRect(x:0.0,y:0.0,width:20.0,height:20.0)varlargeTitleTextAttributes:[NSA