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
Asked
Active
Viewed 195 times
2 Answers
1
Select clipToBounds from attributes section, or add button.clipsToBounds = true
.
Try using Autofit
as well. it is also available in attribute
section on storyboard.

Heeba Khan
- 92
- 1
- 5