in the storyboard (xcode 6) I want the userβs circular profile image to exit Facebook.
So, I made this interface in a storyboard using an automaton:

Then, using Facebook iOS sdk, I take the user profile (using fast):
var facebookProfileUrl = "http://graph.facebook.com/\(userId!)/picture?type=normal";
In the storyboard, I set the image to Zoom In Fit. Use the following code to make a circular overview of the image:
self.facebookProfileImage.layer.cornerRadius = self.facebookProfileImage.frame.size.width / 2; self.facebookProfileImage.clipsToBounds = true;
When I run the code, in any case, the image does not look circular:

I assume the problem is the automatic layout, but I'm not sure. How can I make the image completely round?
ios objective-c xcode autolayout storyboard
Tom Jan 27 '15 at 23:49 2015-01-27 23:49
source share