[UINavigationBar appearance].translucent=NO;//这行一定不要少,要不然颜色有差异,因为这行是禁止背景透明。这个bar里面有很多层,因此要加入这个避免透明,造成了导航条颜色的差异
[UINavigationBar appearance].barTintColor=[UIColor colorWithRed:0x16/255.0f green:0xdb/255.0f blue:0x8c/255.0f alpha:1];
[UINavigationBar appearance].translucent=NO;//这行一定不要少,要不然颜色有差异,因为这行是禁止背景透明。这个bar里面有很多层,因此要加入这个避免透明,造成了导航条颜色的差异
[UINavigationBar appearance].barTintColor=[UIColor colorWithRed:0x16/255.0f green:0xdb/255.0f blue:0x8c/255.0f alpha:1];