自定义导航栏返回按钮标题

2018-03-09  本文已影响9人  赤焰军少帅林殊


两个条件都满足
self.navigationController.navigationBar.topItem.title=@“”;


- (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPushItem:(UINavigationItem *)item{
    
    UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
    
    item.backBarButtonItem = back;
    
    return YES;
    
}
上一篇下一篇

猜你喜欢

热点阅读