Posts

Post marked as solved
6 Replies
The constraints that I want to add are to the top bottom and sides of the image, and constrain the images to the image view. I want to constrain all of the images in the view for example if I tap on the first button I want the image associated with that button to have constraints, and if I tap on the second button and it changes from the image from button 1 to button 2 I want the image associated with button 2 to have constraints also. The problem I am having is that I don't know how to add the constraints to the images. The images are added programmatically they are not in the main.storyboard.