概述使用自定义的颜色生成图片 class func imageWithColor(color:UIColor) -> UIImage{let rect = CGRect(x: 0.0, y: 0.0, width: 1