I am making changes to my app to support 3.5″ display. Currently it is supporting 4″ display.
The screen layout looks like this. How to add following constraint in storyboard ? (I have enabled auto layout option in storyboard.)
Didn't figure to do everything in interface builder
You've got to declare an
NSLayoutConstraint outlet in your code :
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *buttonWidthConstraint;
and then set :
self.buttonWidthConstraint.constant = self.containerView.frame.size.width /2;
Here is what you have to do in IB :
Center the image view like this
Fix it's width, height, and Y position
Hope this helps.