Always, when you set the constraints in auto layout in iOS, set the update option as shown in the pictures below :
Also in most cases uncheck “Relative to margin” option.
Always, when you set the constraints in auto layout in iOS, set the update option as shown in the pictures below :