From 4e8e8fa9924adf2bb31ce73b33cbb5b309234fd7 Mon Sep 17 00:00:00 2001 From: pastorin Date: Tue, 28 Apr 2015 10:14:17 -0300 Subject: [PATCH] full-sized UINavigationBar titleView --- XLPagerTabStrip/Demo/NavButtonBarExampleViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XLPagerTabStrip/Demo/NavButtonBarExampleViewController.m b/XLPagerTabStrip/Demo/NavButtonBarExampleViewController.m index f4d4e2d..7dc2962 100644 --- a/XLPagerTabStrip/Demo/NavButtonBarExampleViewController.m +++ b/XLPagerTabStrip/Demo/NavButtonBarExampleViewController.m @@ -39,7 +39,7 @@ [self.buttonBarView setBackgroundColor:[UIColor clearColor]]; [self.buttonBarView.selectedBar setBackgroundColor:[UIColor orangeColor]]; - [self.navigationItem setTitleView:self.buttonBarView]; + [self.navigationController.navigationBar addSubview:self.buttonBarView]; [self.buttonBarView registerNib:[UINib nibWithNibName:@"ButtonCell" bundle:nil] forCellWithReuseIdentifier:@"Cell"]; }