I added a UINavigationBar to my UIView
I am trying to set its title , and its leftbar byut it failed
I use the following code
self.title = @"Edit Table ";
UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStyleBordered target:self action:@selector(EditTable:)];
[self.navigationItem setLeftBarButtonItem:addButton];
[super viewDidLoad];
nothing be changed , I call this uiview using
self.NodeSelection = [[NodesList alloc]initWithNibName:@"NodesList" bundle:nil];
[self presentModalViewController:self.NodeSelection animated:YES];
any suggestion please
Update
Call this View using
You can change the title of NavigationBar using this
and For leftBarButton your code is right.
Second Update
For return to parent screen