liebus

UITextView Border padding 본문

예전꺼(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)];  // 여기가 페딩






'예전꺼(2014년이전꺼) > iOS' 카테고리의 다른 글

맥 파인더 직접 이동  (1) 2014.04.15
iPhone Display  (0) 2013.05.27
Mac 숨긴 파인더 보기  (0) 2012.01.02
NSMutableDictionary  (0) 2011.10.15
Xcode 삭제  (0) 2011.09.29
Comments