我有一个标准的UIBarButtonItem
UIBarButtonItem *share = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share:)];
如何将它添加到UIToolBar中? 我尝试了
self.toolbarItems = [NSArray arrayWithObject:share];
但是它却不起作用。需要您的帮助。