#1. UIColor 생성

////////////////
UIColor * color = [UIColor colorWithRed:255.0/255.0 green:255.0/255.0 blue:255.0/255.0 alpha:1.0];


#2. UIColor to CGColor, 변환

////////////////
// Quartz Core 를 사용할 때 필요할 때가 있다.
CGColorRef cgColor = [[UIColor grayColor] CGColor];


#3. UIColor Alpha 변환

////////////////
// 반투명 alpha 값을 얻는다.
UIColor * color = [[UIColor grayColor] colorWithAlphaComponent:0.5];


+ Recent posts