一切正常FBProfilePictureView工作正常,但我需要從FBProfilePictureView獲取該圖片,並將其變成UIImage。如何將FBProfilePictureView轉換爲UIImage?
我應該怎麼做?
我嘗試使用這樣的:
UIGraphicsBeginImageContext(self.profilePictureView.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
self.TestPictureOutlet.image = viewImage;
但對於我的解決方案,這並不工作。
不知道他們爲什麼沒有公開UIImage。 Lame解決方案,但是你可以使用Graph API並通過URL加載嗎? – 2012-08-29 02:54:31