2016-05-03 6 views

答えて

1

これは、誰かがそれが役に立つ----->

NSTextAttachment *attachment = [[NSTextAttachment alloc] init]; 
    attachment.image = [UIImage imageNamed:@"Attach-52.png"]; 

    NSAttributedString *attachmentString = [NSAttributedString attributedStringWithAttachment:attachment]; 

    NSMutableAttributedString *myString= [[NSMutableAttributedString alloc] initWithString:@"My label text"]; 
    [myString appendAttributedString:attachmentString]; 

    myLabel.attributedText = myString; 

同様にあなたはNSAttributedStringてPNG画像を追加することができます見つける場合の答えです。