You should have 4 constraints for the button:
to the top
to the left (alternatively to the middle)
to the right (alternatively constant width)
constant height
And 4 to the tableview:
the top to the bottom of the button
to the left
to the right
to the bottom of the screen
Check out this tutorial if you dont understand autolayout: http://www.raywenderlich.com/115440/auto-layout-tutorial-in-ios-9-part-1-getting-started-2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.