gpt4 book ai didi

ios - 如何使用 UIBarButtonItem 作为菜单按钮将其作为图像移动到左侧?

转载 作者:行者123 更新时间:2023-11-30 11:36:27 24 4
gpt4 key购买 nike

每当我尝试将图像设置为 UIBarButtonItem 时,它就会被放置在栏的中心。如何通过以编程方式设置按钮的图像将其移动到左侧以将其用作菜单按钮? enter image description here

最佳答案

通过 Storyboard中的导航 Controller 设置左栏按钮图像。

单击 Storyboard 中的导航 Controller 并确保选择导航栏。

Click on your Navigation Controller in Storyboard and ensure Navigation Bar is selected

为背面和背面蒙版选择图像。

Choose your back button image for both Back and Back mask

关于ios - 如何使用 UIBarButtonItem 作为菜单按钮将其作为图像移动到左侧?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49718612/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com