#define RGB(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
self.view.backgroundColor = RGB(1,159,239,1);
#define RGB(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
转载于:https://www.cnblogs.com/dingzhijie/p/6599960.html