2015-02-24 167 views

回答

1
if ABPersonHasImageData(person) { 
    let profilePicture = UIImage(data: ABPersonCopyImageDataWithFormat(person, kABPersonImageFormatOriginalSize).takeRetainedValue())! 
    let profilePictureThumbnail = UIImage(data: ABPersonCopyImageDataWithFormat(person, kABPersonImageFormatThumbnail).takeRetainedValue())! 
    println("\(profilePicture)") 
    println("\(profilePictureThumbnail)") 
} 
+0

,如果你需要的代碼的其餘部分只是讓我知道 – 2015-02-24 11:52:06

+0

謝謝:)這是非常有幫助的! – BilalReffas 2015-02-24 13:50:41

+0

不客氣 – 2015-02-24 14:06:37