在storyboard创建了navigationController ,现在要删除它其中的半透明选项。
在appdelegate.m中:
[[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:52.0/255 green:152.0/255 blue:219.0/255 alpha:1]];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setTranslucent:NO];
结果报出个错误然后我的应用就崩溃了。
我搜索了很多问题也没找到解决方法,请高手帮忙解决,谢谢。