You can open an image context, and then harvest its content immediately, without drawing anything into it. This should produce a blank 36x36
UIImage
:
UIGraphicsBeginImageContextWithOptions(CGSizeMake(36, 36), NO, 0.0);
UIImage *blank = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…