修改UINavigationController返回按钮颜色
系统默认颜色是蓝色的 视觉效果非常难看
在push进的ViewController中写
//修改UINavigationController的文字颜色 self.navigationController.navigationBar.tintColor=[UIColor whiteColor]; //修改UINavigationController的前景颜色 self.navigationController.navigationBar.barTintColor=[UIColor colorWithRed:212/256.0 green:21/256.0 blue:10/256.0 alpha:1]; //修改UINavigationController的titleView的文字 字体 文字颜色 UILabel* title=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 160, 44)]; title.backgroundColor=[UIColor clearColor]; title.text=@"发现音乐"; title.textAlignment=1; title.font=[UIFont systemFontOfSize:18 weight:1.0]; title.textColor=[UIColor whiteColor]; self.navigationItem.titleView=title;
“人生苦短,不要把时间浪费在犹豫不决上,喜欢的东西就去买,喜欢的人就去追。”