UIColor

iosでのRGBカラーでのUIColorの指定

iosではRGBを0.0~1.0の値で表します。 そうもの凄く面倒くさい。特に色を指定する時にね。と思ってら、 #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 …