设置item文字属性

来源:互联网 发布:apache怎么读 编辑:程序博客网 时间:2024/03/29 05:32
 //设置文字颜色
   
if (iOS7) {
        [[
UITabBarItemappearance]setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColorwhiteColor]}forState:UIControlStateSelected];
    }
else{
        [[
UITabBarItemappearance]setTitleTextAttributes:@{UITextAttributeTextColor: [UIColorwhiteColor]}forState:UIControlStateSelected];
    }
0 0
原创粉丝点击