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

标签 iphone objective-c ios

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

相关文章:

iphone - 当应用程序在 iOS 中进入挂起模式时如何调用函数?

ios - 在 UIViewController 中显示 uitableview 的问题 - 未对齐

objective-c - Objective-C 中指向对象的方法

ios - 准确引用 braintree IOS 中的公钥状态

iPhone 解析 GET 参数的 url

iPhone ABPeoplePickerNavigationController - 如何从地址簿中选择一个人的两个不同多值属性的两个单个条目

javascript - iphone/ipad 杂志框架、iScroll 或更新版本?

ios - Quickblox 数据安全

iOS:目前有没有办法防止两个 View Controller 同时被推送或弹出?

ios - dateByAddingTimeInterval中的错误