通過ABPersonViewController我們可以編輯聯繫人的照片。那麼我們如何通過其他方式訪問照片信息?但是,我們將ABPerson的圖像數據作爲大的原始圖片,而不是ABPersonViewController顯示的剪輯圖片數據。那我們該怎麼辦? ABPersonCopyImageData,next?ABPersonViewController如何處理照片數據?
0
A
回答
0
+[UIImage imageWithData:]
縮放圖像,像
UIGraphicsBeginImageContextWithOptions(size, YES, 0);
[[UIImage imageWithData:data] drawInRect:(CGRect){{0,0},size}];
UIImage * scaledImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
(假設size
是 「點」 數,iPhone 4支持)
的可能重複[我如何獲得地址簿圖像數據的裁剪幀?](http://stackoverflow.com/questions/3220187/how-do-i-get-the-cropping-frame-of-the-address-book-image-data) – 2010-08-24 14:42:52