navigationBar 标题字体颜色设置

方法1:
    //设置navigation bar字体颜色
    NSDictionary *attributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,[UIFont boldSystemFontOfSize:20],UITextAttributeFont, nil];
    _homeNavC.navigationBar.titleTextAttributes = attributes;

方法2:   

    //导航栏标题颜色
    NSDictionary *attributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,[UIFont boldSystemFontOfSize:20],UITextAttributeFont, nil];
    [[UINavigationBar appearance] setTitleTextAttributes:attributes];
    


你可能感兴趣的:(Objective-C)