Develop
2013.04.23 18:06
[ios] UIColor 지정에서 RGB define ㅎㅎ
조회 수 22916 댓글 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);
-
[js] 객체 머지..
-
[js] 간단한 게임 프로토타입 (HTML5 와는 무관)
-
[js] 가운데 새창 뜨는 함수와 이벤트
-
[js] xsl 강의 자료
-
[js] window.open() 속성 사용 방법
-
[js] URL 파싱하기 (jQuery 안쓰고)
-
[js] Text 중 URL 형식을 인식해 단축 URL로 변경
-
[js] Text 값을 클립보드에 복사하기
-
[js] show/hide 이벤트 감시 (Observing show/hide event)
-
[js] selectbox 선택 후 input 박스에 적용
-
[js] php의 number_format() 함수와 같은.. ㅋㅋ
-
[js] One Time Pad key generatorㅡ.,ㅡ;