hello everyone
i have problem with my app i have create app photo lock please i have problem when i load all images from photo library in my collection view when i reduce the size of image the image display low resolution and the image not clear like photo in camera and when i increase the size image using PHImageManagaerMaximumSize i have received memory warning please any idea for increase image size for increase resolution photo like photo library in iPhone
and this is my code below
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) → UICollectionViewCell {
let cell = myCollectionView.dequeueReusableCellWithReuseIdentifier(“Cell”, forIndexPath: indexPath) as! SelectImagesCollectionViewCell
let asset = photoAsset[indexPath.row] as! PHAsset
PHImageManager.defaultManager().requestImageForAsset(asset, targetSize: CGSize(width:350,height:350), contentMode: .AspectFit, options: nil) { (img:UIImage?, obj:[NSObject:AnyObject]?) in
cell.imageViewCell.image = img
}
return cell
}