### 1. UIColorFromRGB
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
2.
一個UIImageView對象設置image時,圖像的數據最後是被填充到UIImageView的layer.contents中,一個UIView對象的渲染操作最終都是由它的layer來負責的,而渲染的內容是放在contents中,一個UIImage對象,如果不是通過CIImage生成的,其底層數據一般是存儲在一個CGImage對象中,UIImageView.layer.contents指向的是image.CGImage對象