UITabBar selectionIndicatorImage height on iPhone X

后端 未结 2 608
广开言路
广开言路 2020-12-31 10:53

I\'m using a selectionIndicatorImage for a UITabBar, which is 49 points high, like this: UITabBar.appearance().selectionIndicatorImage = UIIm

2条回答
  •  忘掉有多难
    2020-12-31 11:54

    I had the same issue. I "fixed" it by subtracting the height by 1 pixel, so 48 pixels for the height of the selection image. It seems to be an iPhone X bug.

提交回复
热议问题