Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
386 views
in Technique[技术] by (71.8m points)

ios - 自iOS 13起UITabBar图标未垂直对齐(UITabBar icons not aligned vertically since iOS 13)

Ever since I updated Xcode my icons are not aligned on my UITabBar.

(自从更新Xcode以来,我的图标在UITabBar上未对齐。)

The two end icons appear higher vertically than the two in the middle.

(两端的图标在垂直方向上比中间的两个图标高。)

I have not modified this bar whatsoever besides the icons.

(除了图标之外,我还没有修改此栏。)

I thought it may be the icon size, but when I take the left icon and apply it to the 2nd image, the alignment is still off.

(我以为可能是图标的大小,但是当我拿到左侧图标并将其应用于第二张图像时,对齐方式仍然关闭。)

UITabBar 1 UITabBar 2

  ask by user3010455 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Take fix size images its due to space in image.

(由于图像中的空间,请使用固定大小的图像。)

Tabbar always shows the same size which we provide it.

(标签栏始终显示与我们提供的尺寸相同的尺寸。)

Check your icon images there must be space in images.

(检查您的图标图像,图像中必须有空格。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...