Reputation: 204
I am trying to create a profile image selection button. However, every time I select an image with UIImagePickerController, the image overflows the bottom of the button border. Is there a way to make sure the image stays within the border
Upvotes: 0
Views: 339
Reputation: 102
Select clipToBounds from attributes section, or add button.clipsToBounds = true
.
Try using Autofit
as well. it is also available in attribute
section on storyboard.
Upvotes: 1