UITextView の感触と外観を標準化するカテゴリ クラスを作成しました。以下のコードで境界線を追加することはできますが、フォント名、フォントの色を設定する方法がわかりません。
#import "UITextView+Form.h"
#import <QuartzCore/QuartzCore.h>
@implementation UITextView (Form)
-(void)standardize{
CALayer *thisLayer = self.layer;
thisLayer.borderWidth=3.0;
thisLayer.borderColor=[UIColor blackColor].CGColor;
}
@end