2010년 2월 4일 목요일

UITextView Rounded Rect 입히기

UITextView도 UITextField 처럼 quartz를 이용해서 rounded rect를 적용할 수 있다.

// framework 에 QuartzCore 추가.

#import <QuartzCore/QuartzCore.h>

//...

// 아래 textView는 IB에서 설정해둔것.

//The rounded corner part, where you specify your view's corner radius:
textView.layer.cornerRadius = 10;
textView.clipsToBounds = YES;   




참고
http://stackoverflow.com/questions/1824463/how-to-style-uitextview-to-like-rounded-rect-text-field

댓글 없음:

댓글 쓰기