Develop
2013.04.23 18:06
[ios] UIColor 지정에서 RGB define ㅎㅎ
조회 수 22970 댓글 0
일반적인 코드
self.view.backgroundColor = [UIColor colorWithRed:123/255.0 green:123/255.0 blue:123/255.0 alpha:1];
============================================================
#define 이용하여 개선 된 코드
#define RGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1] #define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] self.view.backgroundColor = RGB(123, 123, 123);
-
[iphone] 파일 업로드 샘플 코드 ㅎㅎ
-
[node.js] 지금 하고 있는거..
-
[node.js] nodejs 기본 설치
-
[iphone] 화면 전환 Portrait & Landscape Mode
-
[iphone] performSelector:withObject:afterDelay: 에 대한 내용
-
[ios] 디렉토리 하하하..
-
[ios] iCloud관련 저장 디렉토리
-
[ios] NSData 클래스에 대해 (NSData <-> char*)
-
[ios] UILabel top alignㅎㅎ
-
[ios] UIColor 지정에서 RGB define ㅎㅎ
-
[ios] 자주 쓰는 패턴과 API
-
[ios] 테이블뷰셀/뷰에 배경 패턴 넣기..