uinavigationcontroller的item颜色怎么改
2016-01-23
展开全部
没有具体的属性让你来设置,但是title和item,用可以用自定义视图来初始化的。
例如title,你可以定义一个uilabel,设置颜色,然后将navigationItem.titleView = uilabel
UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
[customLab setTextColor:[UIColor blueColor]];
[customLab setText:@"ge558853"];
customLab.font = [UIFont boldSystemFontOfSize:20];
self.navigationItem.titleView = customLab;
[customLab release];
例如title,你可以定义一个uilabel,设置颜色,然后将navigationItem.titleView = uilabel
UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
[customLab setTextColor:[UIColor blueColor]];
[customLab setText:@"ge558853"];
customLab.font = [UIFont boldSystemFontOfSize:20];
self.navigationItem.titleView = customLab;
[customLab release];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询