在delegate中修改
//修改整体的navigationBar的背景颜色 [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:46/255.0 green:186/255.0 blue:157/255.0 alpha:1.0]]; //修改整体的navigationBar的字体颜色为白色 NSDictionary * dict=[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]; [[UINavigationBar appearance] setTitleTextAttributes:dict]; [[UINavigationBar appearance] setTintColor:[UIColor redColor]];
时间: 2024-10-06 01:15:03