【发布时间】:2013-06-27 03:45:26
【问题描述】:
我使用自定义 UIViews 作为 navigationBarItem(就像 Facebook 在他们的 iOS 应用程序中那样)。
UIImageView *linkesMenu = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"187menu.png"]];
UIBarButtonItem *barItem = [[UIBarButtonItem alloc] initWithCustomView:linkesMenu];
barItem.action = @selector(MenuSlider:);
self.navigationItem.leftBarButtonItem = barItem;
我尝试了这个和其他一些东西,但没有任何效果。
【问题讨论】:
标签: ios objective-c uinavigationbar custom-view