I'm new in storyboard and , for exercise , I created a .xib file when I put a
You need to add auto-layout constraints by control-dragging from your view(in your case pink colored view) to superview and select (equal width, equal height). Should look something like this. Of course, you have to handle other constraints too but it seems it will only confuse you. I'd advise you to go through some auto-layout tutorials. Hope that helps.