【发布时间】:2011-07-23 06:03:18
【问题描述】:
我有一个如下所示的工具栏:
问题是它有点杂乱,因此我想给它添加一些间距。我试着做:
UIBarButtonItem *spacer =
[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace
target:nil
action:nil];
self.toolbar_array =
[[NSMutableArray alloc] initWithObjects:self.mention,
spacer,
self.picture,
spacer,
share,
spacer,
self.message, nil];
但它仍然给了我同样的东西。如何在这些 UIBarButtonItems 之间添加 10px?
【问题讨论】:
标签: objective-c iphone ipad uibarbuttonitem toolbaritems