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.
我在导航栏中有一个按钮。我正在尝试将文本向上移动一点,以便我可以再添加一个文本下行,但是它不起作用,无论我的矩形位置如何,文本总是在中间。是否可以在导航栏中向上或向下移动按钮?
如果你想要移动按钮标题,你可以使用它。
[button setTitleEdgeInsets:UIEdgeInsetsMake(0, 10, 0, 0)];