예전꺼(2014년이전꺼)/iOS
UITextView Border padding
리베스
2013. 5. 27. 13:24
QuartzCore.framework 이 추가 되어 있어야 한다.
.h
#import <QuartzCore/QuartzCore.h>
.m
UITextView객채 생성 후
self.contentTextView.layer.borderWidth = 2.0;
self.contentTextView.layer.cornerRadius = 5.0;
self.contentTextView.layer.borderColor = [RGB(199, 197, 182) CGColor];
[self.contentTextView setContentInset:UIEdgeInsetsMake(10, 10, 10, 10)]; // 여기가 페딩