IT虾米网

UIButton 如何设置字体颜色

luoye 2018年06月23日 手机开发 1026 0
    UIButton *temp = [UIButton buttonWithType:UIButtonTypeRoundedRect];    
                
            [temp setTitle:@“test”  forState:UIControlStateNormal];                
            [temp setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];  

评论关闭
IT虾米网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

json解析NSJSONSerialization方法