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);
-
[ios] UIView에서 상위 UIViewController 가져오기
-
[ios] UITableView 특정 Row만 Update
-
[ios] UILabel top alignㅎㅎ
-
[ios] UIColor 지정에서 RGB define ㅎㅎ
-
[ios] UIButton multi-line iOS7
-
[ios] UIAlertView 초간단 샘플 ㅎㅎ
-
[ios] UDID와 UUID (디바이스의 Unique Identifier)
-
[ios] UDID 사용 제한에 따른 대안들
-
[ios] Touch ID 적용 샘플 코드 (예제)
-
[ios] Thread Loop 내에서 UI 업데이트 방법
-
[ios] TextField 특정 문자만 사용하도록 하기
-
[ios] Swift 4 String, Date, DateFormatter 예제