iOS 13 自定义UITabbar高度失效问题

自定义tabbar高度失效,整体下移,解决办法是原来在viewWillLayoutSubviews写的改到viewDidLayoutSubviews

-(void)viewDidLayoutSubviews{

    [super viewDidLayoutSubviews];

    CGRectframe =self.tabBar.frame;

    frame.size.height=kNLPTabarHeight;

    frame.origin.y = self.view.bounds.size.height - kNLPTabarHeight;

    self.tabBar.frame= frame;

    [self.tabBar bringSubviewToFront:self.nlpTabBar];

}

你可能感兴趣的:(iOS 13 自定义UITabbar高度失效问题)