I am displaying ticker View on navigation bar.And do not want to show back button. To hide back button I wrote the following code:
-(void)viewWillAppear:(BOOL)animated
{
self.navigationController.navigationBar.hidden=false;
self.navigationController.navigationItem.leftBarButtonItem.tintColor=[UIColor clearColor];
self.navigationController.navigationItem.hidesBackButton=true;
}
in every implementation file.
And applying ticker in app delegate didFinishLaunching method as below.
self.navController.navigationItem.hidesBackButton=YES;
[self.navController.navigationBar addSubview:[Constant BSE_Ticker]];
[self.navController.navigationBar addSubview:[Constant NSE_Ticker]];
but back button is not hiding. showing screen shot below
Thanks! I will appreciate any help.