UITextView で太字、斜体、下線付きのテキストを適用するにはどうすればよいですか? 私はすでに少し調査を行っており、「allowsEditingTextAttributes」を使用できることを発見しました。私はすでにこれを自分のプロジェクトに適用しており、コードは以下のとおりです。
//.h
@interface ViewController : UIViewController{
IBOutlet UITextView *allowEditing;
}
@property(nonatomic) BOOL allowsEditingTextAttributes;
//.m
@synthesize allowsEditingTextAttributes;
- (void) changeAttribute{
allowEditing.allowsEditingTextAttributes = YES;
}
誰かが私が欠けているものを知っていますか?