這裏是一個的n00b問題,而是一個我似乎無法來解決讀我的書和筆記:的iOS:無法設置導航欄色調顏色
我實現導航控制,我可以」弄清楚爲什麼我的代碼無法爲它設置色調顏色。
在我的應用程序委託實現文件,下applicationDidFinishLaunching:
方法:
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
rootViewController *rootView = [[rootViewController alloc] initWithNibName:@"rootViewController" bundle:nil];
self.navController = [[UINavigationController alloc] initWithRootViewController:rootView];
self.navController.navigationBar.tintColor = [UIColor colorWithRed:20/255 green:44/255 blue:86/255 alpha:1];
的navController
初始化得很好,但有一個黑色。
心不是'阿爾法:1'完全透明? – cpjolicoeur 2012-03-26 20:37:43
不,一個alpha是完全點亮。 0的Alpha是完全透明的。 – CodaFi 2012-03-26 21:08:13