NSDictionary*navbarTitleTextAttributes = [NSDictionarydictionaryWithObjectsAndKeys: [UIColorwhiteColor],NSForegroundColorAttributeName,[UIFontsystemFontOfSize:18],NSFontAttributeName, nil];[[UINavigationBarappearance]setTitleTextAttributes:navbarTitleTextAttributes];[[UINavigationBarappearance]setTintColor:[UIColorwhiteColor]];//设置按钮颜色[[UINavigationBarappearance]setBarTintColor:kDefaultColor];//设置背景颜色
网友评论