问题在iPhone项目的标题栏

问题描述:

HII每一个问题在iPhone项目的标题栏

我创建一个分组表视图编程使用下面的代码表是否正确创建,但不显示标题栏在那里我做了错误的任何一个可以帮助我感谢名单提前

 self.title = @"User Details"; 

self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] 
               initWithBarButtonSystemItem:UIBarButtonSystemItemCancel 
               target:self action:@selector(cancel_Clicked:)] autorelease]; 

    self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] 
               initWithBarButtonSystemItem:UIBarButtonSystemItemSave 
               target:self action:@selector(save_Clicked:)] autorelease]; 

    self.view.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; 


     UITableView *tableView1; 
     tableView1 = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, 320, 415)style:UITableViewStyleGrouped]; 
     tableView1.dataSource = self; 
     tableView1.delegate = self; 
     [self.view addSubview:tableView1]; 

难道你不是指自我。 navigationItem .title = @“User Details”; ?