Ios UItabaritem更改字体大小
我正在使用以下代码更改UITabBarController子类中UITABBARIEM的字体。它在iOS 8中工作,这段代码是否与iOS 7兼容 多谢各位Ios UItabaritem更改字体大小,ios,Ios,我正在使用以下代码更改UITabBarController子类中UITABBARIEM的字体。它在iOS 8中工作,这段代码是否与iOS 7兼容 多谢各位 [[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Bold" size:17.0f],
[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Bold" size:17.0f],
NSForegroundColorAttributeName : [UIColor whiteColor]
} forState:UIControlStateNormal];
[[UITabBarItem appearance] setTitleTextAttributes:@{NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-Bold" size:17.0f],
NSForegroundColorAttributeName : [UIColor grayColor]
} forState:UIControlStateSelected];
你的问题是什么?您在iOS 7上试用过吗?请将fontName HelveticaNeue Bold更改为任何其他名称,如Courier,然后告诉我它是工作名称?我在iOS 7中不工作。是否有其他方法更改UITabBarItem标题的属性