If you're trying to hide a UIBarButtonItem, you'll actually have to modify the contents of the parent bar. If it's a UIToolBar, you'll need to set the bar's items array to an array that doesn't include your item.
NSMutableArray *items = [[myToolbar.items mutableCopy] autorelease];
[items removeObject: myButton];
myToolbar.items = items;
本文介绍了一种在iOS应用中隐藏UIBarButtonItem的方法。具体操作为修改其父级工具栏的items数组,移除对应UIBarButtonItem对象。
871

被折叠的 条评论
为什么被折叠?



