1. QuartzCore 프레임워크를 추가한다

2. 헤더에 QuartzCore를 추가한다.

2. 해당 view, button 객체에 아래와 같이 작업을 해준다

둥근 모서리 : [button.layer setCornerRadius:0.0f]
테두리 두께 : [button.layer setBorderWidth:2.0f]
테두리 색 :
UIColor * boarderColor = [[UIColor alloc] initWithRed:xxxx green:xxx blue:xxx alpha:xxx];
[button.layer setBorderColor:[boardercolor CGColor]]

'iOS' 카테고리의 다른 글

아이폰 아이콘 설정 주의사항  (0) 2011.03.11
아이폰 개발 유용팁  (0) 2011.03.11
userInteractionEnabled 영향  (0) 2011.03.04
NSMutableArray 생성 방법  (0) 2011.03.02
Objective C Delegate 활용  (0) 2011.02.24

+ Recent posts