iOS 自定义TabBarController布局
2019-05-29 本文已影响0人
pokeey
1. 改变tabbar位置
设置自带tabbar.hidden = YES
自定义UIView,作为tabbar
在viewDidLayoutSubviews方法中设置viewframe
更改TabBarController容器view的frame
func: viewDidLayoutSubviews
UIView *containerView = [[self.view subviews] objectAtIndex:0];
containerView.frame = ...