您的位置:首页 > 产品设计 > UI/UE

UIButton 如何设置字体颜色

2015-06-26 12:04 447 查看
直接上代码

UIButton *temp = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 
         
        [temp setTitle:@“test”  forState:UIControlStateNormal];             
        [temp setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];


苹果开发群 :414319235 欢迎加入 欢迎讨论问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: