dean
dean

Reputation: 331

Unable to change the width and height of UIImageView inside a UITableViewCell - swift

I have the following layout for my UIViewController that also has a UITableView. I have tried to change the width and height of the UIImageView inside the UITableViewCell without success. I have been using the storyboard to change the width and height without any success. The image size remains the same size whether I try to increase or decrease any of the dimensions (as in when i install the app or it on the simulator - the size of the image is always the same)

layout:

enter image description here

Looks Like this:

enter image description here

Constraints for UIImageView:

enter image description here

width:

enter image description here

Height:

enter image description here

Upvotes: 0

Views: 163

Answers (1)

Shehata Gamal
Shehata Gamal

Reputation: 100503

You need to click the width and height constraints and change their constants values in your example change from 20 to anything , but from size inspector or by dragging a side of the imageView you won't get anything as you can't have both auto-layout and frame at the same time

enter image description here

Upvotes: 1

Related Questions