
我已尝试过其他代码:
// Set the barTintcolor to translucent and text colors to whiteself.navigationController.navigationbar.barTintcolor = [UIcolor clearcolor];self.navigationController.navigationbar.TitleTextAttributes = [NSDictionary dictionaryWithObject:[UIcolor whitecolor] forKey:UITextAttributeTextcolor];self.navigationController.navigationbar.tintcolor = [UIcolor whitecolor];
但是this是结果,一个黑色的UINavigationbar,我怎么能解决这个问题呢?
该应用程序从ViewController推进到ViewController,其中UINavigationbar淡出为红色.还有其他几个VIEwControllers执行相同的淡入淡出动画,因此需要UINavigationbar
带有“Ny”按钮的第一个VIEwController的部分将得到改进;) – 只需要开始使用像Photoshop这样的工具
谢谢!
埃里克
[self.navigationController.navigationbar setBackgroundImage:[UIImage new] forbarMetrics:UIbarMetricsDefault];self.navigationController.navigationbar.translucent = YES;总结
以上是内存溢出为你收集整理的ios – 半透明的UINavigationBar全部内容,希望文章能够帮你解决ios – 半透明的UINavigationBar所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)