iOS 设置self.title的颜色

 UIColor * cc = [UIColor whiteColor];

                NSDictionary * dict = [NSDictionary dictionaryWithObject:cc forKey:NSForegroundColorAttributeName];

                self.navigationController.navigationBar.titleTextAttributes = dict;

                self.title = [NSString stringWithFormat:@"1/%ld",photos.count];

展开阅读全文

没有更多推荐了,返回首页