字体颜色,

    NSDictionary * dict=[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName];

    self.navigationController.navigationBar.titleTextAttributes = dict;

self.title,哦哈哈,

 

     self.navigationItem.titleView = [NavBarFactory navTitle:[NSString stringWithFormat:@"%i %@ %i", _currentPageIndex+1, NSLocalizedString(@"of", @"Used in the context: 'Showing 1 of 3 items'"), [self numberOfPhotos]]];

原文地址:https://www.cnblogs.com/guligei/p/4045630.html