Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 ipad 基础应用程序的 ui 导航栏中添加多个按钮?就像图片中的一样?任何人都可以帮助我吗?
当然可以,您可以将按钮添加为UIBarButtonItem,有关更多信息,请在此页面查看我的答案
UIBarButtonItem
xcode中的导航栏或工具栏问题
你可以通过轻微的修改来达到你所需要的
问候
UINavigationBar 通过 UINavigationItem 填充。通常这是 UIViewController 的导航项(尽管它不是必须的)。UINavigationItem 具有rightBarButtonItems和leftBarButtonItems。这些都是复数;你可以给他们每一个栏按钮项目的数组。
rightBarButtonItems
leftBarButtonItems