I am using Auto layout in xib files and not using Storyboard.
I have added one UIImageView on self.view. I am trying to set the aspect ratio on UIImageView width and super view height. But when I drag the control from UIImageView( subview) to self.view (superview) to enable the aspect ratio option but I am surprised that aspect ratio option is not coming.
Only four option are coming
- Trailing space to container.
- Top space to container.
- Centre Horizontally in container .
- Centre vertically in container.
How to set the aspect ratio between subview and superview.
Thanks in Advance.
 
     
     
     
    