UINavigationController *nav = [[[UINavigationController alloc] initWithRootViewController:self] autorelease];
nav.navigationBar.barStyle = UIBarStyleDefault;
nav.navigationBar.tintColor = [UIColor clearColor];
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(closeMe:)] autorelease];
self.navigationItem.rightBarButtonItem.style = UIBarButtonItemStyleDone;
我想看看只有Done按钮。视图的背景是黑色的,所以Ive将navigationBar设置为黑色,但这也将Done按钮变为黑色,但我想保持蓝色。