I\'m trying to get the length of a UIImage. Not the width or height of the image, but the size of the data.
UIImage
Example in Swift:
let img: UIImage? = UIImage(named: "yolo.png") let imgData: NSData = UIImageJPEGRepresentation(img, 0) println("Size of Image: \(imgData.length) bytes")