我做了一个模态视图。我不想要默认颜色。如何将其导航设置为黑色?
这是我的代码不起作用:
EditBillItemModalViewController *editBillItemvc = [[EditBillItemModalViewController alloc] init];
editBillItemvc.anItem = anItem;
editBillItemvc.navigationController.navigationBar = [UIColor blackColor];
editBillItemvc.onOKButtonClickedCallBack = ^(Item item){ [aBill.listOfOrderedItem replaceObjectAtIndex:bvc.selectedItemIndex withObject:item]; [(UITableView)bvc.view reloadData]; [self setnewTotalAfterEditBillItem]; };
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:editBillItemvc];
[self presentModalViewController:navController animated:YES];