self.navigationController.navigationBar.translucent = YES;//透明
iOS - 导航栏设置半透明或取消半透明
原文:https://www.cnblogs.com/gongyuhonglou/p/10447889.html