How to correct Tab Bar height issue on iPhone X

前端 未结 20 3449
长发绾君心
长发绾君心 2020-12-13 13:07

I\'m having an issue with my app when testing for iPhone X. I\'m not sure how to adjust this issue, as well as not make it an issue for non iPhone X sizes. This only seems t

20条回答
  •  一生所求
    2020-12-13 13:45

    I was facing this cosmetic problem above iOS 11.0 and below 12.0 only.

    I was having a CustomTabBar class inherited from UITabBar. I override the frame method like below:

    - (CGRect)frame{
        return self.bounds;
    }
    

    It resolved this issue in most of the iOS version 11.0 *

提交回复
热议问题