【发布时间】:2011-12-31 01:43:34
【问题描述】:
我希望我的导航栏使用黑色透明外观。在我的非故事板应用程序中,我可以将此代码放在 AppDidFinishLoadingWithOptions 中:
[[UINavigationBar appearance] setTintColor:[AppColors navBarColor]];
[[UINavigationBar appearance] setBarStyle:UIBarStyleBlackTranslucent];
[[UINavigationBar appearance] setAlpha:0.7];
[[[UITableView appearance] backgroundView]setBackgroundColor:[AppColors tableViewBackgroundColor]];
[[[UITableViewCell appearance] backgroundView]setBackgroundColor:[AppColors tableViewCellBackgroundColor]];
如果我使用情节提要,这段代码会放在哪里?看来我的控制器是在应用程序完成启动之前加载的
谢谢!
【问题讨论】:
标签: iphone objective-c ios storyboard