Hi to all, i am creating a movie application on iphone. i have added navigation bar dynamically to my page i.e when it navigates from one page to another it shows navigation bar with a navigation item on the left hand side . on clicking the navigation item on the left side i can navigate to my page.But my code for navigation bar does not work properly for my player page and my video page i.e when i click on a particular song and the player page opens the navigation bar doesn't come and same is with video. this is my code for navigation bar:
- (id) init
{
self = [super init];
if (self != nil)
{
// create a custom navigation bar button and set it to always say "Back"
UIBarButtonItem *temporaryBarButtonItem = [[UIBarButtonItem alloc] init];
temporaryBarButtonItem.title = @"Back";
self.navigationItem.backBarButtonItem = temporaryBarButtonItem;
[temporaryBarButtonItem release];
// set the title of this view
self.title = NSLocalizedString(@"Videos", @"");
//self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
}
return self;
}
Please help me in solving this problem