iOS custom layout TabBarController

1. Change the location of tabbar

Set comes tabbar.hidden = YES
custom UIView, as tabbar

在viewDidLayoutSubviews方法中设置viewframe

Change the view of the container frame TabBarController

func: viewDidLayoutSubviews
UIView *containerView = [[self.view subviews] objectAtIndex:0];
containerView.frame = ... 

Guess you like

Origin blog.csdn.net/weixin_34240520/article/details/90994608