【问题标题】:Adding a UIBarButton in the bottom right hand side of the screen [duplicate]在屏幕的右下角添加一个 UIBarButton [重复]
【发布时间】:2018-05-29 00:37:39
【问题描述】:

我想让我的添加按钮位于屏幕的右下角,但是当我添加 UIBarButton 时,它会向左移动,我无法将它移动到我想要的位置。另外因为我有一个 tableView 我不能添加一个普通的按钮,因为它只是成为 table view 的一部分。我在下面附上了一张我的 main.storyBoard 的照片。

Main.StoryBoard

本质上,我只是想将添加按钮从左向右移动。

【问题讨论】:

  • 给出的答案已经过时,所以我不得不再次询问

标签: ios xcode uinavigationcontroller uibutton


【解决方案1】:

假设下栏是 UIToolbar...

在你的 UIBarButtonItem 左侧添加一个灵活的空格键按钮项目应该将项目推到右端,假设没有其他项目。

灵活的空格键按钮项位于对象库的底部:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-02
    • 2019-01-05
    • 2013-02-17
    • 2018-12-12
    • 2019-09-04
    • 2013-04-22
    • 2019-06-20
    • 1970-01-01
    相关资源
    最近更新 更多