devhkh

#import <QuartzCore/QuartzCore.h>  추가 후 사용

UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(-10.0f, 10.0f, 201.0f, 181.0f)];

[imageView.layer setCornerRadius:10];

[imageView.layer setMasksToBounds:YES];

[cell.contentView addSubview:imageView];

[imageView release];


setCornerRadius는 얼마나 테두리를 둥글게 깎을것인지 설정하는 값이다.





                                                 적용전                                                                             적용후



'iOS' 카테고리의 다른 글

장면이동시 애니메이션 주기  (0) 2012.03.06
CGContextRef 정리  (0) 2012.03.06
NSUserDefaults 사용하기  (0) 2012.02.20
현재 접속된 wifi의 ssid를 알아오는 방법  (0) 2012.02.01
WebColor를 UIColor로 변경하는 방법.  (0) 2012.01.31