In Xcode 9, tableview
automatically create estimated cells based on Autolayout
. Since you have not provide autolayout, that's why you are getting this.
You need to disable estimated and automatic cell size by selecting tableview and uncheck the two options:
Give value you want to Row height, and cell will be created accordingly.
Hope this can help.