添加 tabbar 之后 会自动,计算 autolayout, vc(viewcontroller) 的高度中会减去 tabbar 的高度, 如果撸主 用的storyboard 要在vc的面板上勾去 Under Bottom Bars 属性。
我自己用整个屏幕的高+50搞定了。不知道是怎么回事
self.view.height+50