RGB hexa 값(0xfffefa)으로 RGB값 설정 예제)
unsigned rgbValue = 0xfffefa;
UIColor *bgColor = [UIColor colorWithRed:((rgbValue & 0xFF0000) >> 16)/255.0
green:((rgbValue & 0xFF00) >> 8)/255.0
blue:(rgbValue & 0xFF)/255.0 alpha:1.0];
[myView setBackgroundColor:bgColor];
댓글 없음:
댓글 쓰기