0
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];