You can do it with autoresizing tool which is appear in size inspector.
Step1: Place your views in which ever pattern you want.
Step2: Then select a view and click on size inspector.
Step3: Click to select inner arrows of autoresizing tools rectangle and deselect outer arrows (predefined selections).
Step4: Repeat same step for the remaining squares. Thats it. Verify below image which i have done.
Do same for by placing table view in your storyboard, verify below image for which points autoresizing settings for table view clearly.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…