gpt4 book ai didi

iphone - iphone 中工具栏按钮之间的间距

转载 作者:行者123 更新时间:2023-11-28 23:11:40 24 4
gpt4 key购买 nike

我在工具栏中有 3 个按钮。但在 View 中它应该看起来像一个单独的按钮,即 3 个工具栏按钮之间不应该有任何空间。我想不出办法来做到这一点。

最佳答案

添加一个UISegmentedControl:

UIBarButtonItem *segmentedButton = [[UIBarButtonItem alloc] initWithCustomView:segmentedControl];
[toolbar setItems:[NSArray arrayWithObjects:segmentedButton, nil]];

关于iphone - iphone 中工具栏按钮之间的间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8075504/

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