`
wanggp
  • 浏览: 148210 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

隐藏UIToolBar上的UIBarButtonItem

 
阅读更多

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; 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics