NSStringがあり、NSAttributedStringを作成する必要があります。NSAttributedStringを文字列に変換して戻す
bvcx b vcxbcvx bcxvbcxv bvx xbc bcvx bxcv bcxv bcxv bcxv bcvx bcvx bcxvbcvx bvc bcvx bxcv{
NSFont = "\"LucidaGrande 24.00 pt. P [] (0x108768a80) fobj=0x108788880, spc=7.59\"";
NSParagraphStyle = "Alignment 4, LineSpacing 0, ParagraphSpacing 0, ParagraphSpacingBefore 0, HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0, LineHeightMultiple 0, LineBreakMode 0, Tabs (\n 28L,\n 56L,\n 84L,\n 112L,\n 140L,\n 168L,\n 196L,\n 224L,\n 252L,\n 280L,\n 308L,\n 336L\n), DefaultTabInterval 0, Blocks (null), Lists (null), BaseWritingDirection -1, HyphenationFactor 0, TighteningFactor 0.05, HeaderLevel 0";
}
これは、UTF-8でNSAttributedStringています:
NSStringのようなものです。それを行う方法はありますか?
あなたは 'NSAttributedString * attrStr = [[NSAttributedString alloc] initWithString:@" foo "];'を探していますか? –
いいえ、私はフォーマットされたnsattributestringが必要です。興味のあるThx。 –
次に、 'NSMutableAttributedString'を使用して、どんな種類の属性を追加してもかまいません。 –