0
我有超過5個選項卡,因此給我一個帶有導航欄的表格視圖單元格。如何更改表格視圖單元格和導航欄。如何更改自動生成的導航欄Xcode
我有超過5個選項卡,因此給我一個帶有導航欄的表格視圖單元格。如何更改表格視圖單元格和導航欄。如何更改自動生成的導航欄Xcode
你可以設置UITableView
細胞色似波紋管的UITableView委託方法: -
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor colorWithRed:204/255.0 green:0/255.0 blue:0/255.0 alpha:0.1];
}
,你可以設置後退按鈕UINavigationBar的手動你只需要把這個婁代碼中ViewDidLoad
方法如: -
UIImage* imageback = [UIImage imageNamed:@"Back_Button.png"];
CGRect frameimgback = CGRectMake(0, 0, 50, 30);
backButton = [[UIButton alloc] initWithFrame:frameimgback];
[backButton setBackgroundImage:imageback forState:UIControlStateNormal];
[backButton addTarget:self action:@selector(goBack:)
forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *btn = [[UIBarButtonItem alloc]initWithCustomView:backButton];
self.navigationItem.leftBarButtonItem = btn;
希望它可以幫助你感謝你
您是否想說在UITabBar中有5個選項卡,因此您有一個「更多導航控制器」代表額外的選項卡? – Bejmax
是的,有沒有辦法改變tableview單元格的顏色和更多的按鈕(導航欄上的後退按鈕)。 – moo
是否要更改navBarImage或後退按鈕? – Rajneesh071