I want to grab a subimage from a UIImage. I\'ve looked around for a similar question, to no avail.
I know the range of pixels I want to grab - how can I return th
Updated @donkim answer for swift 3:
let fromRect=CGRect(x:0,y:0,width:320,height:480) let drawImage = image.cgImage!.cropping(to: fromRect) let bimage = UIImage(cgImage: drawImage!)