uinavigation样式

时间:2023-03-09 08:31:25
uinavigation样式
 UINavigationController* pNav = [[UINavigationController alloc] initWithRootViewController:pView];
[pNav.navigationBar setBarTintColor:NAVBAR_COLOR];//导航条背景颜色
[pNav.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:.f green:.f blue:.f alpha:.f],NSForegroundColorAttributeName,nil,NSShadowAttributeName,[UIFont fontWithName:@"HelveticaNeue-CondensedBlack" size:21.0], .NSFontAttributeName, nil]];//导航栏字体颜色[pNav.navigationBar setTintColor:[UIColor whiteColor]];//uibarbuttonitem颜色