iOS 11 iPhone X simulator UITabBar icons and titles being rendered on top covering eachother

前端 未结 30 2496
误落风尘
误落风尘 2020-11-29 17:05

Anyone having issue with the iPhone X simulator around the UITabBar component?

Mine seem to be rendering the icons and title on top of each other, I\'m not sure if I

30条回答
  •  悲哀的现实
    2020-11-29 17:34

    Solved for me by calling [tabController.view setNeedsLayout]; after dismissing the modal in completion block.

    [vc dismissViewControllerAnimated:YES completion:^(){ 
         UITabBarController* tabController = [UIApplication sharedApplication].delegate.window.rootViewController;
         [tabController.view setNeedsLayout];
    }];
    

提交回复
热议问题