Develop
2013.04.23 18:06
[ios] UIColor 지정에서 RGB define ㅎㅎ
조회 수 22966 댓글 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);
-
[ios] URL Scheme 이용하여 앱 설치 확인
-
[ios] UI컨트롤러 샘플코드
-
[ios] UIWebView에서 로컬에 있는 html 파일 불러오기
-
[ios] UIWebView에서 NSURLRequest에 Cookie 실어 보내기
-
[ios] UIWebView를 이용한 로컬 HTML 파일 표시
-
[ios] UIWebView 쿠키 유지
-
[ios] UIWebView 캐쉬 삭제
-
[ios] UIView에서 상위 UIViewController 가져오기
-
[ios] UITableView 특정 Row만 Update
-
[ios] UILabel top alignㅎㅎ
-
[ios] UIColor 지정에서 RGB define ㅎㅎ
-
[ios] UIButton multi-line iOS7