我在工具栏中有 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/