一切正常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