If I instantiate a UIImage like this :
UIImage *image = [[UIImage alloc] init];
The object is created but it doesn\'t contain any image.
Check for cgImage or ciImage, in Swift 3
public extension UIImage {
public var hasContent: Bool {
return cgImage != nil || ciImage != nil
}
}
CGImage: If the UIImage object was initialized using a CIImage object, the value of the property is NULL.
CIImage: If the UIImage object was initialized using a CGImageRef, the value of the property is nil.